rai.login()
you can also set environmental variables to automatically login:
connect_tools
:
PUBLIC_URL
is the public url to connect to your fastapi.app.routes
is the FastAPI’s app = FastAPI()
pip install pyngrok
nest_asyncio
if you are in a notebook environment. pip install nest-asyncio
@app.post(name=..., description=...)
. The name
and description
of the endpoint becomes the same name
and description
of the Tool. This is crucial when a tool is equipped to an agent since its used in the prompt for agents.message : str = Query(..., description="message from user")
The typing and description of endpoint parameters is automatically used when setting the user inputs for the Tool.