## Problem I found a bug with `Github.CountStargazers` where a stargazer count of `0` was interpreted as a null result. In other words, 0 wasn't passed back to the Engine correctly. Separately, the tool function was also not authorized correctly. ## Fix - Don't use a falsy comparison when evaluating `result` inside the `ToolOutputFactory` - Add unit tests for `ToolOutputFactory` to give us confidence in the business logic - Added `ToolContext` to pass in the authorization token correctly. Before ``` User (nate@arcade-ai.com): how many stars does the ArcadeAI/Docs repo have on github? Assistant (gpt-4o): I successfully checked the repository, but unfortunately, I cannot provide the number of stars for the ArcadeAI/Docs repository. Please try checking directly on GitHub for the most accurate information. Called tool 'Github_CountStargazers' Parameters:{"owner":"ArcadeAI","name":"Docs"} 'Github_CountStargazers' tool returned:Github.CountStargazers called successfully ``` After ``` User (nate@arcade-ai.com): how many stars does the ArcadeAI/Docs repo have on github? Assistant (gpt-4o): The ArcadeAI/Docs repository on GitHub has 0 stars. Called tool 'Github_CountStargazers' Parameters:{"owner":"ArcadeAI","name":"Docs"} 'Github_CountStargazers' tool returned:0
54 lines
1.5 KiB
JSON
54 lines
1.5 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 actorup --no-auth`",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/arcade/run_cli.py",
|
|
"args": ["actorup", "--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": ""
|
|
}
|
|
]
|
|
}
|