For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI Agent APIs

All AI agents configured on Rierino are automatically accessible as APIs and can be incorporated into any app for visual interaction

All runners which include GenAI base runner and have GenAI models assigned to them can service the following common APIs for describing and interacting with agents.

Gets detailed view of AI agent capabilities

get

Returns sagas, states, systems and scripting languages an agent can utilize.

Query parameters
idstringOptional

Id of agent to view

Responses
200

OK

application/json
idstringOptional

Id of the agent

get
/api/request/{channel}/GetAIAgent

Calls an AI agent

post

Makes a request to a specific AI agent with a message or prompt inputs.

Body
agentstringOptional

Id of the agent to call

Example: translator
chatstringOptional

Id of the ongoing chat with agent

Example: 123
messagestringOptional

Message/request to send to agent, required if prompt is not used

Example: Please translate the following sentence...
promptstringOptional

Id of the agent prompt to be used, required if message is not used

Example: multi_translate
inputobjectOptional

Input parameters which are used by the selected prompt

Example: {"text":"Hello world","source":"enUS","targets":["frFR","ptPT"],"instructions":"Please keep it short"}
Responses
200

OK

application/json
responsestringOptional

Response text generated by the agent

chatstringOptional

Id of the chat created/ongoing

post
/api/request/{channel}/CallAIAgent

Calls a 'panel' of AI agents

post

Makes the same request to a list of AI agents and collects responses from all.

Body
messagestringOptional

Message/request to send to agent, required if prompt is not used

Example: Please translate the following sentence...
promptstringOptional

Id of the agent prompt to be used, required if message is not used

Example: multi_translate
inputobjectOptional

Input parameters which are used by the selected prompt

Example: {"text":"Hello world","source":"enUS","targets":["frFR","ptPT"],"instructions":"Please keep it short"}
Responses
200

OK

application/json
post
/api/request/{channel}/CallAIPanel

Summarizes an AI chat

post

Makes a request to a specific AI agent to summarize current messages in a given chat.

Body
agentstringOptional

Id of the agent to call

Example: translator
chatstringOptional

Id of the ongoing chat with agent

Example: 123
Responses
200

OK

application/json
responsestringOptional

Response summary generated by the agent

chatstringOptional

Id of the chat created/ongoing

post
/api/request/{channel}/SummarizeAIChat

Rates a message from AI agent

post

Submits a positive or negative feedback for an AI response.

Body
chatstringOptional

Id of the rated chat

Example: 123
responseIdstringOptional

Id of the agent message to rate

Example: 123
ratingnumberOptional

User rating (typically -1 for negative, 1 for positive)

Example: 1
Responses
200

OK

application/json
objectOptional
post
/api/request/{channel}/RateAIMessage

Last updated