arcade-mcp/toolkits/spotify/arcade_spotify/tools
Eric Gustin 7c228a59d5
Update Evals SDK (#175)
# PR Description
This PR renames `ExpectedToolCall` to `NamedExpectedToolCall` and then
creates a new dataclass called `ExpectedToolCall`. `ExpectedToolCall`
can be passed to the `EvalSuite.add_case` and `EvalSuite.extend_case`
methods.

1. Enhance `EvalSuite.add_case` and `EvalSuite.extend_case` by accepting
a list of `ExpectedToolCall` as their `expected_tool_calls` input
parameter. This helps create a scaffolding for developers. Previously,
the expected type was `list[tuple[Callable, dict[str, Any]]]`, which is
still valid for backward compatibility.
```python
# Before (still valid for backward compatibility)
expected_tool_calls=[
    (
        adjust_playback_position,
        {
            "absolute_position_ms": 10000,
        },
    )
]
        

# After
expected_tool_calls=[
    ExpectedToolCall(
        func=adjust_playback_position,
        args={"absolute_position_ms": 10000},
    )
]
```
2. Removed any references to arcade.core in toolkits directory.
3. Some linting for import organization.
2024-12-19 10:29:13 -08:00
..
__init__.py SDK: Generic OAuth 2.0 connector (#81) 2024-10-03 16:40:02 -07:00
constants.py More Spotify Tools (#140) 2024-11-01 13:15:43 -07:00
models.py Add examples (#136) 2024-11-06 11:02:41 -08:00
player.py Return success message if playback is altered (#145) 2024-11-04 17:22:10 -08:00
search.py More Spotify Tools (#140) 2024-11-01 13:15:43 -07:00
tracks.py Add tools to Spotify Toolkit (#132) 2024-10-30 18:26:39 -07:00
utils.py Update Evals SDK (#175) 2024-12-19 10:29:13 -08:00