diff --git a/fern/server-url/events.mdx b/fern/server-url/events.mdx index a2db22bf5..0e5f1a5f1 100644 --- a/fern/server-url/events.mdx +++ b/fern/server-url/events.mdx @@ -49,17 +49,20 @@ Example assistant configuration (excerpt): "model": { "provider": "openai", "model": "gpt-4o", - "functions": [ + "tools": [ { - "name": "sendEmail", - "description": "Used to send an email to a client.", - "parameters": { - "type": "object", - "properties": { - "emailAddress": { "type": "string" }, - "message": { "type": "string" } - }, - "required": ["emailAddress", "message"] + "type": "function", + "function": { + "name": "sendEmail", + "description": "Used to send an email to a client.", + "parameters": { + "type": "object", + "properties": { + "emailAddress": { "type": "string" }, + "message": { "type": "string" } + }, + "required": ["emailAddress", "message"] + } } } ] @@ -74,14 +77,29 @@ When tools are triggered, your Server URL receives a `tool-calls` message: "message": { "type": "tool-calls", "call": { /* Call Object */ }, - "toolWithToolCallList": [ + "toolCallList": [ { - "name": "sendEmail", - "toolCall": { "id": "abc123", "parameters": { "emailAddress": "john@example.com", "message": "Hi!" } } + "id": "abc123", + "type": "function", + "function": { + "name": "sendEmail", + "arguments": { "emailAddress": "john@example.com", "message": "Hi!" } + } } ], - "toolCallList": [ - { "id": "abc123", "name": "sendEmail", "parameters": { "emailAddress": "john@example.com", "message": "Hi!" } } + "toolWithToolCallList": [ + { + "type": "function", + "function": { "name": "sendEmail", "parameters": { /* tool parameters schema */ } }, + "toolCall": { + "id": "abc123", + "type": "function", + "function": { + "name": "sendEmail", + "arguments": { "emailAddress": "john@example.com", "message": "Hi!" } + } + } + } ] } }