fix(agents-api): Make the sample work #467
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Diwank Tomer [email protected]
Summary:
This PR updates
base_evaluate
to handleBaseModel
instances, addszip
to allowed functions, modifies task execution logic, and adjusts tests and dependencies to ensure the sample task works correctly.Key points:
base_evaluate.py
: ConvertsBaseModel
instances to dicts usingmodel_dump
and wrapsvalues
in aBox
.utils.py
: Addszip
toALLOWED_FUNCTIONS
.task_execution.py
: Removesmodel_dump
call onoutput
and updatestransition
function.pyproject.toml
: Addspython-box
dependency.find_selector.yaml
: Usesload_yaml
for parsing YAML content.test_find_selector.py
: Updates tests to match new YAML parsing and output handling.Generated with ❤️ by ellipsis.dev