generateId
Generate an id in the SDK default format.
Produces the same id format the SDK uses internally for messages and tool calls. Use it so ids you mint by hand match the ones the loop generates.
let id = generateId()Signature
func generateId(
size: Int = 16
) -> StringDefined in Sources/AI/Core/RuntimeContext.swift.
Parameters
| Parameter | Type | Default |
|---|---|---|
size | Int | 16 |
Returns
A String.