Basic LLM Responses
The core response type contains the agent’s text response along with usage and metadata information: TypeScript Type:Structured Responses
For agents that return structured data, Cedar provides flexible typing for custom response objects: TypeScript Types:Built-in Response Types
Cedar provides several built-in response types with corresponding TypeScript types and Zod schemas:FrontendToolResponse
For executing registered frontend tools: TypeScript Type:SetStateResponse
For executing state setter functions: TypeScript Type:MessageResponse
For adding custom messages to chat: TypeScript Type:Streaming Responses
For real-time streaming, Cedar provides event-based typing: TypeScript Type:Voice Responses
For voice-enabled agents, Cedar extends the base response with audio-specific fields: TypeScript Type:Next Steps
Now that you understand response typing, learn about:- Typing Agent Requests - Type safety for agent requests and parameters
- Agent Backend Connection - Setting up your backend integration
- Chat - Implementing chat interfaces with your typed agents