Documentation
ΒΆ
Index ΒΆ
- func AIDevTeamExample()
- func CodeReviewExample()
- func ContentCreationExample()
- func CreateMultiAgentSystem() *agent.MultiAgentCoordinator
- func CreateProductionPostgresConfig(host, database, username, password string) *persistence.DatabaseConfig
- func CreateRAGPostgresConfig(host, database, username, password string, embeddingDim int) *persistence.DatabaseConfig
- func CreateReActAgent() *agent.Agent
- func CreateRedisConfig(host, password string, port int) *persistence.DatabaseConfig
- func CreateSimpleChatAgent() *agent.Agent
- func CustomerSupportExample()
- func DataAnalysisExample()
- func EnterpriseExample()
- func ExampleDatabaseSetup()
- func ProductionDeploymentExample()
- func QuickChat() *agent.Agent
- func QuickReAct() *agent.Agent
- func QuickStartDemo()
- func RunAllExamples()
- func RunDatabasePersistenceDemo()
- func RunUltimateMinimalDemo()
- func SimpleAgentDemo()
- func UltimateMinimalDemo()
- type MockProvider
- func (m *MockProvider) Close() error
- func (m *MockProvider) Complete(ctx context.Context, req llm.CompletionRequest) (*llm.CompletionResponse, error)
- func (m *MockProvider) CompleteStream(ctx context.Context, req llm.CompletionRequest, callback llm.StreamCallback) error
- func (m *MockProvider) CompleteStreamWithMode(ctx context.Context, req llm.CompletionRequest, callback llm.StreamCallback, ...) error
- func (m *MockProvider) CompleteWithMode(ctx context.Context, req llm.CompletionRequest, mode llm.StreamMode) (*llm.CompletionResponse, error)
- func (m *MockProvider) GetConfig() map[string]interface{}
- func (m *MockProvider) GetModels(ctx context.Context) ([]string, error)
- func (m *MockProvider) GetName() string
- func (m *MockProvider) GetStreamingConfig() *llm.StreamingConfig
- func (m *MockProvider) IsHealthy(ctx context.Context) error
- func (m *MockProvider) SetConfig(config map[string]interface{}) error
- func (m *MockProvider) SetStreamingConfig(config *llm.StreamingConfig) error
- func (m *MockProvider) SupportsStreaming() bool
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
func CreateMultiAgentSystem ΒΆ
func CreateMultiAgentSystem() *agent.MultiAgentCoordinator
Example 3: Multi-Agent System - Just 5 lines!
func CreateProductionPostgresConfig ΒΆ
func CreateProductionPostgresConfig(host, database, username, password string) *persistence.DatabaseConfig
CreateProductionPostgresConfig creates a production-ready PostgreSQL configuration
func CreateRAGPostgresConfig ΒΆ
func CreateRAGPostgresConfig(host, database, username, password string, embeddingDim int) *persistence.DatabaseConfig
CreateRAGPostgresConfig creates a PostgreSQL configuration optimized for RAG
func CreateReActAgent ΒΆ
Example 2: ReAct Agent with Tools - Just 4 lines!
func CreateRedisConfig ΒΆ
func CreateRedisConfig(host, password string, port int) *persistence.DatabaseConfig
CreateRedisConfig creates a Redis configuration for caching
func CreateSimpleChatAgent ΒΆ
Example 1: Simple Chat Agent - Just 3 lines!
func ExampleDatabaseSetup ΒΆ
func ExampleDatabaseSetup()
func ProductionDeploymentExample ΒΆ
func ProductionDeploymentExample()
Example: One-Line Production Deployment
func QuickStartDemo ΒΆ
func QuickStartDemo()
func RunDatabasePersistenceDemo ΒΆ
func RunDatabasePersistenceDemo()
func RunUltimateMinimalDemo ΒΆ
func RunUltimateMinimalDemo()
func SimpleAgentDemo ΒΆ
func SimpleAgentDemo()
func UltimateMinimalDemo ΒΆ
func UltimateMinimalDemo()
Types ΒΆ
type MockProvider ΒΆ
type MockProvider struct{}
MockProvider for demonstration
func (*MockProvider) Close ΒΆ
func (m *MockProvider) Close() error
func (*MockProvider) Complete ΒΆ
func (m *MockProvider) Complete(ctx context.Context, req llm.CompletionRequest) (*llm.CompletionResponse, error)
func (*MockProvider) CompleteStream ΒΆ
func (m *MockProvider) CompleteStream(ctx context.Context, req llm.CompletionRequest, callback llm.StreamCallback) error
func (*MockProvider) CompleteStreamWithMode ΒΆ
func (m *MockProvider) CompleteStreamWithMode(ctx context.Context, req llm.CompletionRequest, callback llm.StreamCallback, mode llm.StreamMode) error
func (*MockProvider) CompleteWithMode ΒΆ
func (m *MockProvider) CompleteWithMode(ctx context.Context, req llm.CompletionRequest, mode llm.StreamMode) (*llm.CompletionResponse, error)
func (*MockProvider) GetConfig ΒΆ
func (m *MockProvider) GetConfig() map[string]interface{}
func (*MockProvider) GetModels ΒΆ
func (m *MockProvider) GetModels(ctx context.Context) ([]string, error)
func (*MockProvider) GetName ΒΆ
func (m *MockProvider) GetName() string
func (*MockProvider) GetStreamingConfig ΒΆ
func (m *MockProvider) GetStreamingConfig() *llm.StreamingConfig
func (*MockProvider) SetConfig ΒΆ
func (m *MockProvider) SetConfig(config map[string]interface{}) error
func (*MockProvider) SetStreamingConfig ΒΆ
func (m *MockProvider) SetStreamingConfig(config *llm.StreamingConfig) error
func (*MockProvider) SupportsStreaming ΒΆ
func (m *MockProvider) SupportsStreaming() bool
Source Files
ΒΆ
Click to show internal directories.
Click to hide internal directories.