AgentFunctionDefinition
Defines a function the agent can invoke during a conversation.
Defined in: src/providers/agent/deepgram/types.ts:342
Defines a function the agent can invoke during a conversation.
Remarks
Functions can be executed either server-side (via endpoint) or client-side (via DeepgramAgentConfig.onFunctionCall). If no endpoint is provided, the function call is dispatched to the client.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
description? | string | Human-readable description of what the function does, provided to the LLM as context. | src/providers/agent/deepgram/types.ts:347 |
endpoint? | { headers?: Record<string, string>; method?: string; url: string; } | Server-side endpoint. If omitted, function is called client-side. | src/providers/agent/deepgram/types.ts:353 |
endpoint.headers? | Record<string, string> | - | src/providers/agent/deepgram/types.ts:356 |
endpoint.method? | string | - | src/providers/agent/deepgram/types.ts:355 |
endpoint.url | string | - | src/providers/agent/deepgram/types.ts:354 |
name | string | Unique function name the LLM references when requesting a call. | src/providers/agent/deepgram/types.ts:344 |
parameters? | Record<string, unknown> | JSON Schema describing the function’s parameters, passed to the LLM for structured argument generation. | src/providers/agent/deepgram/types.ts:350 |