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_code_blob only parses first code blob in CodeAgent's Observation #114

Closed
joshcx opened this issue Jan 8, 2025 · 1 comment
Closed

Comments

@joshcx
Copy link

joshcx commented Jan 8, 2025

def parse_code_blob(code_blob: str) -> str:

Currently, when the LLM's observation contains multiple code blobs, only the first code blob ends up getting executed. I would expect that all code blobs written by the LLM should get executed?

Example:

Thought: Let's begin xxx...

Code:

print(1)                                                                                                                           

<end_code>

Now, let's focus on zzz

Code:

print(2)                                                                                           

<end_code>

Output:
1

Expected output:
1
2

@joshcx joshcx changed the title parse_code_blob only parses first code blob in CodeAgent's Thought parse_code_blob only parses first code blob in CodeAgent's Observation Jan 8, 2025
@aymeric-roucher
Copy link
Collaborator

You're right, it should be more logical! Opened #128 to solve this.

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

2 participants