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

Parse response of demo agent #305

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jardinetsouffleton
Copy link
Collaborator

No description provided.

@@ -322,7 +327,7 @@ def get_action(self, obs: dict) -> tuple[str, dict]:
{"role": "user", "content": user_msgs},
],
)
action = response.choices[0].message.content
action = extract_code_blocks(response.choices[0].message.content)[1]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried this? The new extract_code_blocks() function returns a list of tuples, but action is expected to be a string

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

Successfully merging this pull request may close these issues.

2 participants