Documentation
¶
Index ¶
- func BuildConversationManager(svc *services.Services, projectID uuid.UUID, llmGateway *gateway.LLMGateway, ...) (*history.CommonConversationManager, error)
- func BuildLLMClient(llmGateway *gateway.LLMGateway, virtualKey string, ...) llm.Provider
- func BuildMCPClient(config *agent_config.MCPServerConfig) (*mcpclient.MCPClient, error)
- func BuildModelParams(params *agent_config.ModelConfig) (responses.Parameters, error)
- func BuildPrompt(svc *prompt.PromptService, projectID uuid.UUID, ...) core.SystemPromptProvider
- type AgentBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConversationManager ¶
func BuildConversationManager(svc *services.Services, projectID uuid.UUID, llmGateway *gateway.LLMGateway, config *agent_config.HistoryConfig, key string) (*history.CommonConversationManager, error)
func BuildLLMClient ¶
func BuildLLMClient(llmGateway *gateway.LLMGateway, virtualKey string, providerName llm.ProviderName, modelID string) llm.Provider
func BuildMCPClient ¶
func BuildMCPClient(config *agent_config.MCPServerConfig) (*mcpclient.MCPClient, error)
func BuildModelParams ¶
func BuildModelParams(params *agent_config.ModelConfig) (responses.Parameters, error)
func BuildPrompt ¶
func BuildPrompt(svc *prompt.PromptService, projectID uuid.UUID, config *agent_config.PromptConfig) core.SystemPromptProvider
Types ¶
type AgentBuilder ¶
type AgentBuilder struct {
// contains filtered or unexported fields
}
func NewAgentBuilder ¶
func NewAgentBuilder(svc *services.Services, llmGateway *gateway.LLMGateway, broker core.StreamBroker) *AgentBuilder
func (*AgentBuilder) BuildAndExecuteAgent ¶
func (b *AgentBuilder) BuildAndExecuteAgent(ctx context.Context, agentConfig *agent_config.AgentConfig, in *agents.AgentInput, key string) (*agents.AgentOutput, error)
Click to show internal directories.
Click to hide internal directories.