Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key 'value' not found in event #38

Open
lms2004 opened this issue Mar 4, 2025 · 0 comments
Open

Key 'value' not found in event #38

lms2004 opened this issue Mar 4, 2025 · 0 comments

Comments

@lms2004
Copy link

lms2004 commented Mar 4, 2025

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
---------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant