Documentation
¶
Index ¶
- func NewTemporalConversationSummarizerProxy(workflowCtx workflow.Context, projectID uuid.UUID, ...) core.HistorySummarizer
- func NewTemporalLLMProxy(workflowCtx workflow.Context, config *agent_config.ModelConfig, key string) agents.LLM
- type AgentBuilder
- func (b *AgentBuilder) BuildAndExecuteAgent(ctx workflow.Context, agentConfig *agent_config.AgentConfig, ...) (*agents.AgentOutput, error)
- func (b *AgentBuilder) GetPrompt(ctx context.Context, projectID uuid.UUID, config *agent_config.PromptConfig, ...) (string, error)
- func (b *AgentBuilder) LLMCall(ctx context.Context, config *agent_config.ModelConfig, in *responses.Request, ...) (*responses.Response, error)
- func (b *AgentBuilder) LoadMessages(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, ...) ([]conversation.ConversationMessage, error)
- func (b *AgentBuilder) MCPCallTool(ctx context.Context, config *agent_config.MCPServerConfig, ...) (*responses.FunctionCallOutputMessage, error)
- func (b *AgentBuilder) MCPListTools(ctx context.Context, config *agent_config.MCPServerConfig, ...) ([]core.BaseTool, error)
- func (b *AgentBuilder) SaveMessages(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, ...) error
- func (b *AgentBuilder) SaveSummary(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, ...) error
- func (b *AgentBuilder) Summarize(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, ...) (*core.SummaryResult, error)
- type TemporalConversationPersistenceProxy
- func (t *TemporalConversationPersistenceProxy) LoadMessages(ctx context.Context, namespace string, previousMessageID string) ([]conversation.ConversationMessage, error)
- func (t *TemporalConversationPersistenceProxy) NewRunID(ctx context.Context) string
- func (t *TemporalConversationPersistenceProxy) SaveMessages(ctx context.Context, namespace, msgId, previousMsgId, conversationId string, ...) error
- func (t *TemporalConversationPersistenceProxy) SaveSummary(ctx context.Context, namespace string, summary conversation.Summary) error
- type TemporalConversationSummarizerProxy
- type TemporalLLMProxy
- type TemporalMCPProxy
- type TemporalMCPToolProxy
- type TemporalPromptProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTemporalConversationSummarizerProxy ¶
func NewTemporalConversationSummarizerProxy(workflowCtx workflow.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, key string) core.HistorySummarizer
func NewTemporalLLMProxy ¶
func NewTemporalLLMProxy(workflowCtx workflow.Context, config *agent_config.ModelConfig, key string) agents.LLM
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 workflow.Context, agentConfig *agent_config.AgentConfig, in *agents.AgentInput, key string) (*agents.AgentOutput, error)
func (*AgentBuilder) GetPrompt ¶
func (b *AgentBuilder) GetPrompt(ctx context.Context, projectID uuid.UUID, config *agent_config.PromptConfig, runContext map[string]any) (string, error)
func (*AgentBuilder) LLMCall ¶
func (b *AgentBuilder) LLMCall(ctx context.Context, config *agent_config.ModelConfig, in *responses.Request, key string) (*responses.Response, error)
func (*AgentBuilder) LoadMessages ¶
func (b *AgentBuilder) LoadMessages(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, namespace string, previousMessageId string) ([]conversation.ConversationMessage, error)
func (*AgentBuilder) MCPCallTool ¶
func (b *AgentBuilder) MCPCallTool(ctx context.Context, config *agent_config.MCPServerConfig, params *responses.FunctionCallMessage, runContext map[string]any) (*responses.FunctionCallOutputMessage, error)
func (*AgentBuilder) MCPListTools ¶
func (b *AgentBuilder) MCPListTools(ctx context.Context, config *agent_config.MCPServerConfig, runContext map[string]any) ([]core.BaseTool, error)
func (*AgentBuilder) SaveMessages ¶
func (b *AgentBuilder) SaveMessages(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, namespace, msgId, previousMsgId, conversationId string, messages []responses.InputMessageUnion, meta map[string]any) error
func (*AgentBuilder) SaveSummary ¶
func (b *AgentBuilder) SaveSummary(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, namespace string, summary conversation.Summary) error
func (*AgentBuilder) Summarize ¶
func (b *AgentBuilder) Summarize(ctx context.Context, projectID uuid.UUID, config *agent_config.HistoryConfig, msgIdToRunId map[string]string, messages []responses.InputMessageUnion, usage *responses.Usage, key string) (*core.SummaryResult, error)
type TemporalConversationPersistenceProxy ¶
type TemporalConversationPersistenceProxy struct {
// contains filtered or unexported fields
}
func NewTemporalConversationPersistenceProxy ¶
func NewTemporalConversationPersistenceProxy(workflowCtx workflow.Context, projectID uuid.UUID, config *agent_config.HistoryConfig) *TemporalConversationPersistenceProxy
func (*TemporalConversationPersistenceProxy) LoadMessages ¶
func (t *TemporalConversationPersistenceProxy) LoadMessages(ctx context.Context, namespace string, previousMessageID string) ([]conversation.ConversationMessage, error)
func (*TemporalConversationPersistenceProxy) NewRunID ¶
func (t *TemporalConversationPersistenceProxy) NewRunID(ctx context.Context) string
func (*TemporalConversationPersistenceProxy) SaveMessages ¶
func (t *TemporalConversationPersistenceProxy) SaveMessages(ctx context.Context, namespace, msgId, previousMsgId, conversationId string, messages []responses.InputMessageUnion, meta map[string]any) error
func (*TemporalConversationPersistenceProxy) SaveSummary ¶
func (t *TemporalConversationPersistenceProxy) SaveSummary(ctx context.Context, namespace string, summary conversation.Summary) error
type TemporalConversationSummarizerProxy ¶
type TemporalConversationSummarizerProxy struct {
// contains filtered or unexported fields
}
func (*TemporalConversationSummarizerProxy) Summarize ¶
func (t *TemporalConversationSummarizerProxy) Summarize(ctx context.Context, msgIdToRunId map[string]string, messages []responses.InputMessageUnion, usage *responses.Usage) (*core.SummaryResult, error)
type TemporalLLMProxy ¶
type TemporalLLMProxy struct {
// contains filtered or unexported fields
}
func (*TemporalLLMProxy) NewStreamingResponses ¶
func (l *TemporalLLMProxy) NewStreamingResponses(ctx context.Context, in *responses.Request, cb func(chunk *responses.ResponseChunk)) (*responses.Response, error)
type TemporalMCPProxy ¶
type TemporalMCPProxy struct {
// contains filtered or unexported fields
}
func NewTemporalMCPProxy ¶
func NewTemporalMCPProxy(workflowCtx workflow.Context, config *agent_config.MCPServerConfig) *TemporalMCPProxy
func (*TemporalMCPProxy) GetName ¶
func (t *TemporalMCPProxy) GetName() string
type TemporalMCPToolProxy ¶
func NewTemporalMCPToolProxy ¶
func NewTemporalMCPToolProxy(workflowCtx workflow.Context, config *agent_config.MCPServerConfig, runContext map[string]any, baseTool core.BaseTool) *TemporalMCPToolProxy
func (*TemporalMCPToolProxy) Execute ¶
func (t *TemporalMCPToolProxy) Execute(ctx context.Context, params *responses.FunctionCallMessage) (*responses.FunctionCallOutputMessage, error)
type TemporalPromptProxy ¶
type TemporalPromptProxy struct {
// contains filtered or unexported fields
}
func NewTemporalPromptProxy ¶
func NewTemporalPromptProxy(workflowCtx workflow.Context, projectID uuid.UUID, config *agent_config.PromptConfig) *TemporalPromptProxy
Click to show internal directories.
Click to hide internal directories.