arcade-mcp/examples
Sam Partee 6d8e943c96
Update langchain integration to 0.2.0 (#213)
**PR Description**

This update bumps the integration’s version to `0.2.0` and brings
several important changes to how `langchain-arcade` interfaces with
Arcade tools:

1. **Updated Tool Definition Imports**  
• Replaces `arcadepy.types.shared.ToolDefinition` with
`arcadepy.types.ToolGetResponse as ToolDefinition`.
• The parameter extraction is now done via `tool_def.input.parameters`
instead of the previous `tool_def.inputs.parameters`.

2. **Authorization Flow Adjustments**  
• Uses `auth_response.url` instead of `auth_response.authorization_url`.
• The `authorize` and `is_authorized` methods now rely on the Arcade
client’s updated arguments (`client.auth.status(id=authorization_id)`).

3. **Tool Execution Parameter Renaming**  
• The `execute` method now expects `input=kwargs` instead of
`inputs=kwargs`, aligning with Arcade’s new API spec.

4. **Tool Retrieval Enhancements**  
• `_retrieve_tool_definitions` is revised to better handle pagination
and tool listing (including when no tools/toolkits are explicitly
provided).

5. **Version & Dependency Updates**  
   • Increases `langchain-arcade` to `0.2.0`.  
   • Switches `arcadepy` dependency to `~1.0.0rc1`.  
• Updates example requirements to consume
`langchain-arcade[langgraph]>=0.2.0`.

These changes may affect existing code that relies on older parameter
names (`inputs.parameters` → `input.parameters`) and the renamed execute
argument. Please ensure any integrations or custom usage of Arcade tools
is updated accordingly.
2025-01-22 13:01:15 -08:00
..
fastapi Rename actor to worker (#174) 2025-01-03 14:28:04 -08:00
langchain Update langchain integration to 0.2.0 (#213) 2025-01-22 13:01:15 -08:00
.gitignore Pass ToolContext and CLI cleanup (#13) 2024-08-13 15:40:08 -07:00
call_a_tool_directly.py Add examples (#136) 2024-11-06 11:02:41 -08:00
call_a_tool_directly_with_auth.py Add examples (#136) 2024-11-06 11:02:41 -08:00
call_a_tool_with_llm.py Add examples (#136) 2024-11-06 11:02:41 -08:00
call_multiple_tools_directly_with_auth.py Remove Spotify examples using deprecated tools (#199) 2025-01-17 15:23:48 -08:00
call_multiple_tools_with_llm.py Remove Spotify examples using deprecated tools (#199) 2025-01-17 15:23:48 -08:00
get_auth_token.py Add examples (#136) 2024-11-06 11:02:41 -08:00
simple_chatbot.py Add examples (#136) 2024-11-06 11:02:41 -08:00