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 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/aviary/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,7 @@ def from_function(
continue
d = next(
(
cls._get_param_desc(
p, include_type=types_in_param_descriptions
).replace("\n", " ")
cls._get_param_desc(p, include_type=types_in_param_descriptions)
for p in docstring.params
if p.arg_name == pname
),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class TestTool:
},
"y": {
"description": (
"I am null. And despite that there is a"
"I am null.\nAnd despite that there is a"
mskarlin marked this conversation as resolved.
Show resolved Hide resolved
" multiline argument description."
),
"title": "Y",
Expand Down
Loading