indigo-ai-agent-framework-for-o11
Reactive icon

INDIGO AI Agent framework for O11

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 22 November 2024
 by 
5.0
 (1 rating)
indigo-ai-agent-framework-for-o11

INDIGO AI Agent framework for O11

Documentation
1.0.0
Installation


  1. Install the dependencies 
    1. ardohttp    1.2.5
    2. binarydata-client-side    1.0.0
    3. json-pretty-format-reactive    1.0.8
    4. multipart-form-data    4.0.2
    5. outsystems-ui    2.18.2
    6. sleep    2.0.5
  2. Publish the solution
  3. If needed, refresh references in the solution & republish 
  4. Grant the AI_Agents_Admin role to the users that need administrative access to the AI Agent Framework.


How to use AI Agents in your code
1. Add your API Key
Go to APIKeys and create your API Key and give it a name that represents which cost center it is associated to.
This API Key is the one that will be charged for all the usage of Agents associated with it.
2. Configure the Models you want to use
Models are the different AI "brains" LLMs providers make available to be used in our requests and these will vary in capabilities but also in cost. 

You should select the correct one for your use case
AI model documentation here and the pricing here
3. Create the Agent
Configure your Agent with all the needed data and select which API Key(s) it will use and create Internal Keys associated with these API Keys. Internal Keys are the one you will need to use the REST API in your code and you should have as many Internal Keys as you have different Applications consuming this Agent (this will help your governance process)

Once you have this done you can copy the endpoint specific for each Internal Key, this is what you will use next:

4. Integrate AI Agent API into your code
After having your specific endpoint you can just use it in Service Studio by doing the following steps:

4.1 - Consume REST API:
  - Add single method
  - Change Method to POST
  - Use the endpoint copied from the Agent detail page.
4.2 - Put a sample prompt in your request body
4.3 - Test the API and make sure to "Copy body to response" (Important! Without this you will not get the correct JSON structure!)
4.4 - Use it in your flows!