builder

package
v0.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL