Improve Pydantic and Typedict support and add a bunch of tets.
1. Fixed the test failure where TypeDict was being serialized as a list
of tuples instead of a dict by:
- Adding proper handling for BaseModel instances in the output.py file
- Converting BaseModel results (from TypeDict conversion) to dicts using
model_dump()
- Handling lists containing BaseModel objects
2. Fixed None handling to ensure None results are converted to empty
strings as expected
3. Updated the schema.py to allow dict and list types in
ToolCallOutput.value
4. new tests
- TypeDict output execution tests
- Output factory tests
- Executor tests with TypeDict support
- Schema validation tests
The key changes were:
- In ``arcade_core/output.py``: Added BaseModel conversion logic in the
success method
- In ``arcade_core/schema.py``: Changed ToolCallOutput.value type from
list[str] to list to support complex types
TODO
- [ ] Confirm engine compatibility without changes made to engine
---------
Co-authored-by: Eric Gustin <eric@arcade.dev>
|
||
|---|---|---|
| .. | ||
| arcade_cli | ||
| README.md | ||
| run_cli.py | ||
Arcade CLI
Command-line interface for the Arcade platform.
Overview
Arcade CLI provides a comprehensive command-line interface for the Arcade platform:
- User Authentication: Login, logout
- Tool Development: Create, test, and manage Arcade tools
- Worker Deployment: Deploy and manage Arcade workers
- Interactive Chat: Test tools in an interactive environment
- Project Templates: Generate new toolkit projects
Installation
pip install arcade-ai
Usage
Learn how to use the Arcade CLI and what commands are available to you.
arcade --help
License
MIT License - see LICENSE file for details.