README
Agent Runtimes / hooks
hooks
Hooks for agent-runtimes.
This module exports hooks organized by their purpose:
Chat Component System Hooks
These hooks work with the Zustand-based chat component system.
Use these when building with <Chat />, <ChatSidebar />, etc.
useChat- Main chat hook for messages, streaming, and stateuseFrontendTool,useBackendTool- Tool registration hooks
Transport-Specific Hooks
These hooks provide direct protocol access without the chat component system. Use these for custom implementations or when you need fine-grained control.
useAgUi- AG-UI protocol (Pydantic AI's native protocol)useA2A- A2A protocol (Agent-to-Agent with JSON-RPC)useAcp- ACP protocol (Agent Client Protocol via WebSocket)useVercelAI- Vercel AI SDK chat protocol
Datalayer-Specific Hooks
Hooks for Datalayer platform integration.
useAgentsService- Datalayer AI Agents REST APIuseNotebookAgents- Notebook-specific agent management
References
ActionRegistrar
Re-exports ActionRegistrar
Agent
Re-exports Agent
AGENT_QUERY_OPTIONS
Re-exports AGENT_QUERY_OPTIONS
AgentCatalogStoreState
Re-exports AgentCatalogStoreState
AgentLifecycleOptions
Re-exports AgentLifecycleOptions