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

Function NewLLMWorkflowAgent

pkg/server/workflow_demo.go:521–528  ·  view source on GitHub ↗

NewLLMWorkflowAgent 创建一个 LLMWorkflowAgent。 当前默认使用 templateID = "assistant"。

(name, description string, deps *agent.Dependencies)

Source from the content-addressed store, hash-verified

519// NewLLMWorkflowAgent 创建一个 LLMWorkflowAgent。
520// 当前默认使用 templateID = "assistant"。
521func NewLLMWorkflowAgent(name, description string, deps *agent.Dependencies) *LLMWorkflowAgent {
522 return &LLMWorkflowAgent{
523 name: name,
524 description: description,
525 templateID: "assistant",
526 deps: deps,
527 }
528}
529
530// Name 实现 workflow.Agent 接口。
531func (a *LLMWorkflowAgent) Name() string {

Callers 4

buildSequentialDemoMethod · 0.85
buildParallelDemoMethod · 0.85
buildLoopDemoMethod · 0.85
buildNestedDemoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected