Skip to content

[Bug]: publisher_node(state) error #41

@h7156318030

Description

@h7156318030

What happened?

CoorAgent> run -t agent_factory -u test -m 'build a snake game based on web,the speed can be ajust.'
Workflow Configuration
................................................

<<< planner execution finished

⠙ Starting execution: planner...INFO:src.workflow.process:Started node: publisher

publisher starting execution...
⠙ Starting execution: planner...INFO:src.workflow.agent_factory:publisher evaluating next action
INFO:httpx:HTTP Request: POST https://openrouter.ai/api/v1/chat/completions "HTTP/1.1 200 OK"
INFO:src.workflow.agent_factory:publisher delegating to: researcher
Traceback (most recent call last):
File "F:\Cooragent\cooragent\src\workflow\process.py", line 158, in _process_workflow
command = node_func(state)
^^^^^^^^^^^^^^^^
File "F:\Cooragent\cooragent\src\workflow\agent_factory.py", line 73, in publisher_node
return Command(goto=goto, update={"next": agent})
^^^^
UnboundLocalError: cannot access local variable 'goto' where it is not associated with a value
⠼ Starting execution: publisher...ERROR:src.workflow.process:Error in Agent workflow: cannot access local variable 'goto' where it is not associated with a value

╭───────── CoorAgent ──────────╮
│ Workflow execution finished! │

Distribution version

Windows x64

App Version

No response

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • Yes

Self-hosting Version

No response

Relevant log output

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions