Agents API

You can also invoke your agent through the API.

To try it out:

  1. Head back to the VSCode Server and open rag_examples/agent_rag.py.
  2. Update AGENT_ID with the ID for your Agent. It is in the Agent overview section for the Agent you created.

api.png

  1. Click the Hamburger Menu in the top left corner.
  2. Navigate to Terminal -> New Terminal.
  3. Run the code with python3 rag_examples/agent_rag.py.
  4. ️Try playing with QUERY on line 6 to see what type of responses you get.

api1.png