Skip to main content

UseVercelAIOptions

Agent Runtimes


Agent Runtimes / hooks/useVercelAI / UseVercelAIOptions

Interface: UseVercelAIOptions

Defined in: hooks/useVercelAI.tsx:16

Properties

agentId?

optional agentId?: string

Defined in: hooks/useVercelAI.tsx:24

Agent ID to use (default: 'demo-agent')


baseUrl?

optional baseUrl?: string

Defined in: hooks/useVercelAI.tsx:20

Base URL for the Vercel AI endpoint (e.g., http://localhost:8000).


onMessageReceived?

optional onMessageReceived?: (message) => void

Defined in: hooks/useVercelAI.tsx:32

Callback when a message is received

Parameters

message

Message

Returns

void


onMessageSent?

optional onMessageSent?: (content) => void

Defined in: hooks/useVercelAI.tsx:28

Callback when a message is sent

Parameters

content

string

Returns

void