This PR includes several improvements to the Arcade client and adds LangGraph examples: 1. Enhanced error handling in the Arcade client: - Improved HTTP error handling in `BaseArcadeClient` - Simplified request methods in `SyncArcadeClient` and `AsyncArcadeClient` 2. Updated `ToolResource` class: - Changed base path from `/v1/tool` to `/v1/tools` - Added `tool_version` parameter to `authorize` method 3. Improved Toolkit discovery: - Updated `find_all_arcade_toolkits` to search only in the current Python interpreter's site-packages 5. Added LangGraph examples: - New `langgraph_auth.py` example demonstrating Gmail authentication - New `langgraph_with_tool_exec.py` example showing tool execution within a LangGraph 6. Minor updates: - Changed default `BASE_URL` to `https://api.arcade.com/` - Updated import error message for eval dependencies --------- Co-authored-by: Nate Barbettini <nate@arcade-ai.com>
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug examples/fastapi",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "uvicorn",
|
|
"args": ["main:app", "--app-dir", "${workspaceFolder}/examples/fastapi/arcade_example_fastapi", "--port", "8002"],
|
|
"jinja": true,
|
|
"justMyCode": true,
|
|
"cwd": "${workspaceFolder}/examples/fastapi/arcade_example_fastapi"
|
|
},
|
|
{
|
|
"name": "Debug `arcade dev --no-auth`",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/arcade/run_cli.py",
|
|
"args": ["dev", "--no-auth"],
|
|
"console": "integratedTerminal",
|
|
"jinja": true,
|
|
"justMyCode": true,
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"name": "Debug `arcade chat -h localhost`",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/arcade/run_cli.py",
|
|
"args": ["chat", "-h", "localhost"],
|
|
"console": "integratedTerminal",
|
|
"jinja": true,
|
|
"justMyCode": true,
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"name": "Debug `arcade evals -d` on current file",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/arcade/run_cli.py",
|
|
"args": ["evals", "-d", "${fileDirname}", "-h", "localhost"],
|
|
"console": "integratedTerminal",
|
|
"jinja": true,
|
|
"justMyCode": true,
|
|
"cwd": ""
|
|
}
|
|
]
|
|
}
|