arcade-mcp/arcade/tests/tool
Eric Gustin ae3b02f79e
Support PEP 604 Union Types (#347)
⚠️ Local Worker will not work with Slack toolkit until this is merged 

Support [PEP 604](https://peps.python.org/pep-0604/) Union Types for
tool input param types and return types.

https://github.com/ArcadeAI/arcade-ai/pull/345 introduced PEP 604 Union
Types into our toolkits, but the worker did not support this syntax, so
it was failing on start up if a tool used bar syntax in its return type
(Slack).

Additionally, optionals defined with `Union[T, None]` were already
supported, but didn't have any unit tests, so I added them.
2025-04-07 10:52:53 -07:00
..
test_create_tool_definition.py Support PEP 604 Union Types (#347) 2025-04-07 10:52:53 -07:00
test_create_tool_definition_errors.py Support PEP 604 Union Types (#347) 2025-04-07 10:52:53 -07:00
test_create_tool_definition_new.py Rename inputs -> input to match Engine (#190) 2025-01-03 17:42:58 -08:00
test_create_tool_definition_pydantic.py Support PEP 604 Union Types (#347) 2025-04-07 10:52:53 -07:00
test_create_tool_definition_pydantic_errors.py Support PEP 604 Union Types (#347) 2025-04-07 10:52:53 -07:00
test_fully_qualified_tool_name.py SDK: Fully qualified tool names (#47) 2024-09-23 15:47:36 -07:00