Skip to content

Key 'value' not found in event #38

@lms2004

Description

@lms2004

I’m new to learning this framework.

First:

My command:

mofa-main/python/mofa/agent_templates/reasoner$ dora start reasoner_dataflow.yml

Output:

0195617c-d3d7-7004-afc1-44dd3e0f34fb
attaching to dataflow (use `--detach` to run in background)

Then, I started a new terminal.
My command:

terminal-input

I entered the string “indeed”
Output:

Send You Task : indeed

Error:(terminal-input: terminal. )

File "mofa/python/node-hub/terminal-input/terminal_input/main.py", line 68, in main
    send_task_and_receive_data(node)
  File "mofa/python/node-hub/terminal-input/terminal_input/main.py", line 28, in send_task_and_receive_data
    node_results = json.loads(event['value'].to_pylist()[0])
KeyError: 'value'

Error:(dora start: terminal. )

ERROR reasoner-agent: exited with code 1 with stderr output:
---------------------------------------------------------------------------------
[...]        File "mofa-main/python/mofa/agent_templates/reasoner/scripts/reasoner_agent.py", line 24, in on_event
          agent_result = run_dspy_or_crewai_agent(agent_config=inputs)
        File "mofa-main/python/mofa/run/run_agent.py", line 167, in run_dspy_or_crewai_agent
          raise RuntimeError(str(e))

      RuntimeError: string indices must be integers

Location:
    binaries/runtime/src/operator/python.rs:28:9
---------------------------------------------------------------------------------



[ERROR]
Dataflow 0195617c-d3d7-7004-afc1-44dd3e0f34fb failed:

Node `reasoner-agent` failed: exited with code 1 with stderr output:
---------------------------------------------------------------------------------
[...]        File "mofa-main/python/mofa/agent_templates/reasoner/scripts/reasoner_agent.py", line 24, in on_event
          agent_result = run_dspy_or_crewai_agent(agent_config=inputs)
        File "mofa-main/python/mofa/run/run_agent.py", line 167, in run_dspy_or_crewai_agent
          raise RuntimeError(str(e))

      RuntimeError: string indices must be integers

Location:
    binaries/runtime/src/operator/python.rs:28:9
---------------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions