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

Adding Schema for Tool Outputs #888

Merged
merged 6 commits into from
Mar 18, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
failing tests
tawsifkamal committed Mar 18, 2025

Verified

This commit was signed with the committer’s verified signature.
pietroalbini Pietro Albini
commit 383b50ca81c27b2ffb8ca23c0546fd968b6b000f
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@
"metadata": {},
"outputs": [],
"source": [
"await run_eval(use_existing_preds=None, dataset=\"lite\", length=20, repo=\"django/django\", num_workers=10, model=\"claude-3-7-sonnet-latest\")"
"await run_eval(use_existing_preds=None, dataset=\"lite\", length=5, repo=\"django/django\", num_workers=10, model=\"claude-3-7-sonnet-latest\")"
]
},
{
4 changes: 2 additions & 2 deletions tests/unit/codegen/extensions/test_tools.py
Original file line number Diff line number Diff line change
@@ -225,14 +225,14 @@ def test_list_directory(codebase):
core_dir = next(d for d in src_dir.subdirectories if d.name == "core")

# Verify rendered output has proper tree structure
rendered = result.render()
rendered = result.render(tool_call_id="test")
print(rendered)
expected_tree = """
└── src/
├── main.py
├── utils.py
└── core/"""
assert expected_tree in rendered.strip()
assert expected_tree in rendered.content.strip()


def test_edit_file(codebase):