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

Remove newline filter in param descriptions for agents #169

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

Conversation

mskarlin
Copy link

@mskarlin mskarlin commented Jan 7, 2025

I'm not sure why we had this before. For agents with complex parameter descriptions (our only option for complicated tools since the tool description is limited to 1024 characters), this filter limits our ability to add structure.

So I'd like to cut it out.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 7, 2025
Copy link
Collaborator

@sidnarayanan sidnarayanan left a comment

Choose a reason for hiding this comment

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

Nice catch. I've been burned by this before too, but just ended up editing the docstring instead of a proper fix.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 7, 2025
@mskarlin mskarlin requested a review from jamesbraza January 7, 2025 23:32
@@ -58,6 +58,7 @@ def many_edge_cases(
enum: StubEnum,
defaulted_str: str = "default",
defaulted_float: float = 1.0,
structured_arg: str = "structured",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Structured implies it's a BaseModel not a string, maybe rename to specified_str

@mskarlin
Copy link
Author

mskarlin commented Jan 8, 2025

@jamesbraza do you know what's up with this codeflash failure?

ERROR    Failed to discover tests: [Errno 2] No such file or directory:         
         '/tmp/codeflash_hs_o33vs/collected_tests.pkl'  

@jamesbraza
Copy link
Collaborator

@jamesbraza do you know what's up with this codeflash failure?

ERROR    Failed to discover tests: [Errno 2] No such file or directory:         
         '/tmp/codeflash_hs_o33vs/collected_tests.pkl'  

Might be fixed by latest codeflash, which #170 pulls in

@mskarlin
Copy link
Author

mskarlin commented Jan 8, 2025

@jamesbraza nah still bugged, can I link them to this or do they not have access?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants