@orangecheck/agent-openai / canonicalizeFunctionCall
Function: canonicalizeFunctionCall()
function canonicalizeFunctionCall(c: OpenAiFunctionCall): Uint8Array;
Defined in: index.ts:108
Produce the canonical bytes for an OpenAI function call. The bytes are
what the agent-action envelope's content.hash is a SHA-256 of.
Shape (RFC 8785 canonical JSON, then trailing LF): { "arguments": <canonical JSON of arguments>, "id": <call id>, "name": <function name> }
Parameters
| Parameter | Type |
|---|---|
c | OpenAiFunctionCall |
Returns
Uint8Array