Create an AI Agent in a Project

post

/ic/api/integration/v1/projects/{projectId}/ai/agents

Creates a new AI Agent under the specified project.

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - application/json;charset=utf-8 ()
Root Schema : schema
Match All
Show Source
Nested Schema : AIAgentListRs
Match All
Show Source
Nested Schema : IdRs
Match All
Show Source
Nested Schema : GenericRestRs
Type: object
Show Source
Nested Schema : IdRs-allOf[1]
Type: object
Show Source
Nested Schema : AIAgentListRs-allOf[2]
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : AIAgentResourceDependencyRs
Type: object
Show Source
Nested Schema : templates
Type: array
Show Source
Nested Schema : PatternDependencyRs
Type: object
Show Source
Nested Schema : tools
Type: array
Show Source
Nested Schema : TemplateDependencyRs
Type: object
Show Source
Nested Schema : ToolDependencyRs
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : AIAgentListRs
Match All
Show Source
Nested Schema : IdRs
Match All
Show Source
Nested Schema : GenericRestRs
Type: object
Show Source
Nested Schema : IdRs-allOf[1]
Type: object
Show Source
Nested Schema : AIAgentListRs-allOf[2]
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : AIAgentResourceDependencyRs
Type: object
Show Source
Nested Schema : templates
Type: array
Show Source
Nested Schema : PatternDependencyRs
Type: object
Show Source
Nested Schema : tools
Type: array
Show Source
Nested Schema : TemplateDependencyRs
Type: object
Show Source
Nested Schema : ToolDependencyRs
Type: object
Show Source

500 Response

Server error
Back to Top

Examples

The following example shows how to create an AI Agent in a project by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Create an AI agent ORDER_AGENT in project TEST_PROJECT

This command consumes JSON data and creates an AI Agent under the specified project.

Request:

curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -d @aiagent.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/ai/agents?integrationInstance=service-instance

Request Body:

The following example shows the contents of the request body in JSON format. This is the content of the aiagent.json file listed in the cURL command with the -d option.

{
  "name": "ORDER_AGENT",
  "code": "ORDER_AGENT",
  "version": "01.00.0000",
  "description": "AI Agent for order processing",
  "dependencies": {
    "thinkingPattern": {
      "id": "ORDER_PROCESSING_PATTERN|01.00.0000"
    }
  }
}

Attributes

  • name

    A human-readable name for the AI Agent.

  • code

    A unique identifier for the AI Agent within the project.

  • version

    The version of the AI Agent being created.

  • description

    A textual description of the AI Agent’s purpose and behavior.

  • dependencies

    Defines the dependencies required by the AI Agent.

  • thinkingPattern

    Specifies the Agent Pattern used by the AI Agent to drive its reasoning and behavior.

  • id

    The identifier of the Agent Pattern in the format patternCode|patternVersion.

Back to Top