flutter_ai_agent_tool library

Classes

AIAgent
Main AI Agent class
AIAgentConfig
Configuration for AI Agent
AIProvider
Base interface for AI providers
AIProviderConfig
Configuration for AI provider
AIResponse
Response from AI provider
AIStreamChunk
Streaming chunk from AI provider
AnthropicConfig
Anthropic provider configuration
AnthropicProvider
Anthropic provider implementation
CalculatorTool
A calculator tool for performing mathematical operations
ChatInputWidget
Widget for chat input with send button
ChatMessageWidget
Widget for displaying a single chat message
ChatView
A complete chat view widget with messages and input
ConversationMemory
Simple in-memory conversation history
DateTimeTool
A tool for getting current date and time information
GoogleAIConfig
Google AI provider configuration
GoogleAIProvider
Google AI provider implementation
GrokConfig
xAI Grok provider configuration
GrokProvider
xAI Grok provider implementation
GroqConfig
Groq provider configuration
GroqProvider
Groq provider implementation
MemoryManager
Base interface for memory management
Message
Represents a message in the conversation
OpenAIConfig
OpenAI provider configuration
OpenAIProvider
OpenAI provider implementation
PersistentMemory
Persistent memory using shared preferences
SlidingWindowMemory
Memory that keeps only the most recent messages in a sliding window
Tool
Base class for tools that can be used by AI agents
ToolCall
Represents a tool/function call from the AI
TypingIndicator
A typing indicator animation widget
WebSearchTool
A placeholder web search tool (requires actual search API integration)

Enums

AIAgentState
State of the AI Agent
MessageRole
Role of the message sender