MCPcopy Create free account
hub / github.com/astercloud/aster / AgenticExecute

Method AgenticExecute

pkg/workflow/workflow_agent.go:356–361  ·  view source on GitHub ↗

AgenticExecute Agentic 方式执行 - Agent 决定何时运行 workflow

(ctx context.Context, agent *WorkflowAgent, input string)

Source from the content-addressed store, hash-verified

354
355// AgenticExecute Agentic 方式执行 - Agent 决定何时运行 workflow
356func (wf *Workflow) AgenticExecute(ctx context.Context, agent *WorkflowAgent, input string) (string, error) {
357 if agent.GetWorkflow() == nil {
358 agent.AttachWorkflow(wf)
359 }
360 return agent.Run(ctx, input)
361}
362
363// AgenticExecuteStream Agentic 方式流式执行
364func (wf *Workflow) AgenticExecuteStream(ctx context.Context, agent *WorkflowAgent, input string) <-chan AgentStreamEvent {

Callers 1

testWorkflowAgentFunction · 0.80

Calls 3

AttachWorkflowMethod · 0.80
GetWorkflowMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected