Skip to content

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

PropertyTypeDescriptionDefined in
description?stringHuman-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.urlstring-src/providers/agent/deepgram/types.ts:354
namestringUnique 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

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency