Documentation
¶
Index ¶
- type Config
- type MCPAgent
- func (a *MCPAgent) Close() error
- func (a *MCPAgent) Generate(ctx context.Context, messages []*schema.Message, opts ...compose.Option) (*schema.Message, error)
- func (a *MCPAgent) GetTools() []tool.BaseTool
- func (a *MCPAgent) Stream(ctx context.Context, messages []*schema.Message, opts ...compose.Option) (*schema.StreamReader[*schema.Message], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ModelConfig *models.ProviderConfig
MCPConfig *config.Config
SystemPrompt string
MaxSteps int
MessageWindow int
}
Config holds configuration for creating an MCPAgent
type MCPAgent ¶
type MCPAgent struct {
// contains filtered or unexported fields
}
MCPAgent wraps the eino React Agent with MCP tool integration
func NewMCPAgent ¶
NewMCPAgent creates a new agent with MCP tool integration
func (*MCPAgent) Generate ¶
func (a *MCPAgent) Generate(ctx context.Context, messages []*schema.Message, opts ...compose.Option) (*schema.Message, error)
Generate processes a message and returns the agent's response
Click to show internal directories.
Click to hide internal directories.