Serving your agencies and tools as APIs with FastAPI.
run_fastapi()
function.
"0.0.0.0"
)8000
)"APP_TOKEN"
) - Name of the env variable storing app token./test_agency/get_response
/test_agency/get_response_stream
"APP_TOKEN"
specified (or a differently named variable if you provided app_token_env). If the token is not specified in the env variables, authentication will be disabled.
/test_agency_1/get_response
/test_agency_1/get_response_stream
/test_agency_2/get_response
/test_agency_2/get_response_stream
/tool/ExampleTool
(for BaseTools) or /tool/example_tool
(for function tools)/tool/TestTool
(for BaseTools) or /tool/test_tool
(for function tools)requests
library:
/your_agency_name/get_response
(POST)/your_agency_name/get_response_stream
(POST, streaming responses)/tool/ToolClassName
(POST) - v0.x/tool/function_name
(POST) - v1.x/{your_agency}/get_response
and /{your_agency}/get_response_stream
), you can attach files in two ways:
.pdf
, .jpeg
, .jpg
, .gif
, .png
file_ids
/ file_urls
(processed, not inline): .c
, .cs
, .cpp
, .csv
, .html
, .java
, .json
, .php
, .py
, .rb
, .css
, .js
, .sh
, .ts
, .pkl
, .tar
, .xlsx
, .xml
, .zip
, .doc
, .docx
, .md
, .pptx
, .tex
, .txt
.go
and any extension not listed abovefile_ids: string[]
OR file_urls: { filename: url }
file_urls
:
file_ids_map
(shape: { filename: file_id }
) is returned in the non‑streaming JSON response of POST /get_response
and in the final event: messages
SSE payload of POST /get_response_stream
.