Helicone · Schema

ChatCompletionMessageFunctionToolCall.Function

The function that the model called.

AI GatewaysAI MonitoringGatewaysLLM ObservabilityLLM RoutingPrompt Management

Properties

Name Type Description
arguments string The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function
name string The name of the function to call.
View JSON Schema on GitHub

JSON Schema

helicone-chatcompletionmessagefunctiontoolcallfunction-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionMessageFunctionToolCall.Function",
  "title": "ChatCompletionMessageFunctionToolCall.Function",
  "description": "The function that the model called.",
  "properties": {
    "arguments": {
      "type": "string",
      "description": "The arguments to call the function with, as generated by the model in JSON\nformat. Note that the model does not always generate valid JSON, and may\nhallucinate parameters not defined by your function schema. Validate the\narguments in your code before calling your function."
    },
    "name": {
      "type": "string",
      "description": "The name of the function to call."
    }
  },
  "required": [
    "arguments",
    "name"
  ],
  "type": "object",
  "additionalProperties": false
}