Skip to main content
🔧 You are viewing: API Specification - Complete technical referenceSee also: User Guide · Quick Reference
  • Component: AgentSDK - Unified text chat with conversation history
  • Module: gaia.chat.sdk
  • Import: from gaia.chat.sdk import AgentSDK, AgentConfig, AgentResponse, SimpleChat, quick_chat
  • Source: src/gaia/chat/sdk.py

Overview

AgentSDK provides a unified interface for text-based chat interactions with automatic conversation history management. It supports local LLMs (via Lemonade Server), Claude API, and ChatGPT/OpenAI API, with model-specific prompt formatting through the Prompts class. Key Features:
  • Automatic conversation history tracking
  • Multi-model support (14+ models via Prompts)
  • Streaming and non-streaming responses
  • RAG (Retrieval-Augmented Generation) integration
  • Session management
  • Performance statistics
  • Simple and advanced interfaces
Most Used SDK: AgentSDK is the most frequently used SDK in GAIA, powering:
  • Interactive chat commands
  • Agent communication
  • Code generation
  • Document Q&A (with RAG)

API Specification

AgentConfig

AgentResponse

AgentSDK

SimpleChat

Convenience Functions


Usage Examples

Example 1: Basic Chat

Example 2: Streaming Chat

Example 3: Chat with RAG


Testing Requirements


Dependencies


AgentSDK Technical Specification