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

Method WithAgent

pkg/workflow/workflow_agent.go:350–353  ·  view source on GitHub ↗

===== Workflow Methods with Agent ===== WithAgent 为 Workflow 设置 Agent(Agentic Workflow)

(agent *WorkflowAgent)

Source from the content-addressed store, hash-verified

348
349// WithAgent 为 Workflow 设置 Agent(Agentic Workflow)
350func (wf *Workflow) WithAgent(agent *WorkflowAgent) *Workflow {
351 agent.AttachWorkflow(wf)
352 return wf
353}
354
355// AgenticExecute Agentic 方式执行 - Agent 决定何时运行 workflow
356func (wf *Workflow) AgenticExecute(ctx context.Context, agent *WorkflowAgent, input string) (string, error) {

Callers

nothing calls this directly

Calls 1

AttachWorkflowMethod · 0.80

Tested by

no test coverage detected