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

Handle missing keys in assistant reply #17

Open
rajivpoddar opened this issue Aug 22, 2023 · 0 comments
Open

Handle missing keys in assistant reply #17

rajivpoddar opened this issue Aug 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rajivpoddar
Copy link
Contributor

Step Number: 15
Missing key: 'thoughts'
Traceback (most recent call last):
  File "/Users/rajiv/Downloads/projects/tdd-gpt-agent/tdd_gpt/main.py", line 74, in <module>
    main()
  File "/Users/rajiv/Downloads/projects/tdd-gpt-agent/tdd_gpt/main.py", line 71, in main
    agent.run([prompt])
  File "/Users/rajiv/Downloads/projects/tdd-gpt-agent/tdd_gpt/agent.py", line 195, in run
    f"Thought: {parsed['thoughts']['text']}",
                ~~~~~~^^^^^^^^^^^^
KeyError: 'thoughts'
@rajivpoddar rajivpoddar added the bug Something isn't working label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant