Skip to main content
info
This documentation is for version v2.6 of the product.
For the latest version(v2.7) documentation click here
Version: v2.6 print this page

Agents

Agents orchestrate interaction between users and foundation models to carry out actions or accomplish tasks. Agents extend foundation models to understand user requests and creates an orchestration of the tasks it needs to perform. Agents in Amorphic are made up of three components:

  1. Agents: The Agent is configured with a base model to use and instructions on what task it is designed to performed.
  2. Action Groups: An action group is responsible for the actual action taken. It contains the API definition and the business logic to be executed.
  3. Libraries: A library consists of packages that are needed for action groups.

How to create an Agent?

  1. Select Agents tab from the services in the left navigation pane and click on + New Agent
  2. Fill in the required fields (details listed below) and click on Create Agent button.

Following fields are needed to create an Agent:

PropertiesDetails
Agent NameA name for the Agent. This should be unique across the platform.
DescriptionDescription of the Agent being created.
Base ModelThe base model to use for generating embeddings.
InstructionInput languages of documents. Currently only English is supported
Query Follow UpEnabling this option allows the Agent to prompt additional information from the user.

Below image shows how to create a new Agent Create Agent

Note

Make sure that the base model used to create the Agent is enabled from the models page.

Interacting with an Agent

Users can interact with the Agent in Amorphic by heading to the Chat tab (right next to the Configurations tab). Users can either create a new session or select an existing session from which the Agent will be able to pull chat context from.

Below image shows how to interact with an Agent Interact with an Agent

Note

By default an Agent session will be valid only upto one hour.

Attaching action groups to an Agent

Users can also associate action groups to an Agent to execute a specific set of tasks. To attach action groups to an Agent, click on the Update Action Groups button and select the action groups from the drop down. Users can attach multiple action groups to a single Agent.

Below image shows how to attach action groups to an Agent Attach action groups to an Agent

Attaching a workspace to an Agent

Users can now associate a workspace to an Agent and retireve context from the workspace during consumption from the Agent chat, or via a custom logic defined in the action group lambda. To attach a workspace to an Agent, click on the Update Workspace button and select the workspace from the drop down. Currently only one workspace can be attached to a single Agent.

Below image shows how to attach a workspace to an Agent Attach workspace to an Agent

Note

Only workspaces in ACTIVE status can be attached to an Agent.

Updating Agent details

Users can also update the Agent configuration after creation.

  1. Select the Agent you want to edit and click on the Configuration tab.
  2. Click on the edit icon in the Metadata section and update the required details then click on Update Agent button.

Below image shows how to attach action groups to an Agent Edit to an Agent

Deleting an Agent

  1. Select the Agent that you want to delete and go to Configuration tab.
  2. Click on the delete icon in the Metadata section and click on the Delete Agent button to confirm the deletion.

Below image shows how to delete an Agent Delete Agent