data

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataAgent

type DataAgent struct {
	*mcp_agent.MCPAgentBase
}

DataAgent is a domain-specific agent for data-related tasks. It embeds MCPAgentBase to inherit common MCP-handling logic.

func NewDataAgent

func NewDataAgent() *DataAgent

NewDataAgent creates a new DataAgent.

func (*DataAgent) AsDomainAgent

func (da *DataAgent) AsDomainAgent() domain.DomainAgent

AsDomainAgent is a helper function to ensure interface satisfaction and allow casting.

func (*DataAgent) CanHandle

func (da *DataAgent) CanHandle(task *sdktypes.Task) (bool, float64)

CanHandle determines if this agent is suitable for the given task.

func (*DataAgent) Execute

func (da *DataAgent) Execute(ctx context.Context, task *sdktypes.Task) (*sdktypes.Result, error)

Execute overrides the base implementation.

func (*DataAgent) ExecuteAsync

func (da *DataAgent) ExecuteAsync(ctx context.Context, task *sdktypes.Task) (*sdktypes.ExecutionHandle, error)

ExecuteAsync implements asynchronous execution with streaming for DataAgent

func (*DataAgent) Initialize

func (da *DataAgent) Initialize(ctx context.Context, config types.MCPAgentConfig) error

Initialize satisfies the DomainAgent interface and performs complete initialization.

func (*DataAgent) SetLLM

func (da *DataAgent) SetLLM(llmClient *llm.ChatModelWrapper) error

SetLLM provides the agent with a language model client.

func (*DataAgent) Shutdown

func (da *DataAgent) Shutdown(ctx context.Context) error

Shutdown stops the agent and releases resources.

Jump to

Keyboard shortcuts

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