AttachWorkflow 将 workflow 附加到 agent
(wf *Workflow)
| 47 | |
| 48 | // AttachWorkflow 将 workflow 附加到 agent |
| 49 | func (wa *WorkflowAgent) AttachWorkflow(wf *Workflow) *WorkflowAgent { |
| 50 | wa.mu.Lock() |
| 51 | defer wa.mu.Unlock() |
| 52 | wa.workflow = wf |
| 53 | return wa |
| 54 | } |
| 55 | |
| 56 | // CreateWorkflowTool 创建 workflow 执行工具 |
| 57 | func (wa *WorkflowAgent) CreateWorkflowTool( |
no outgoing calls
no test coverage detected