Add the Plan for OCI GenAI Agentic AI Pattern

AI agents can use different thinking patterns for reasoning. Before you can create an AI agent, you need to create the thinking pattern the AI agent will use. With the Plan pattern, the AI agent does not use any tools. The Plan pattern is used to implement Plan & Execute with multiple AI agents.

For OpenAI, Anthropic, or Azure as the LLM, use the Plan pattern. For OCI Generative AI, use the Plan for OCI GenAI pattern.

Prerequisites:

Add the Plan for OCI GenAI Agentic AI Pattern

  1. In the left navigation pane, select Projects.
  2. Select your project.
  3. In the left navigation pane, select AI Agents AI Agent icon.
  4. In the Agent patterns section, click Add.

    The Create pattern panel is displayed.

  5. In Create pattern, configure required fields for your pattern:
    • Name: Name for the agentic AI pattern. Specify a descriptive name so that you can identify the type of pattern you have created.
    • Identifier: Uniquely identifies the pattern in the project. By default, the identifier is automatically generated from the pattern name.
    • Version: Automatically assigned. Versions follow the format xx.yy.zzzz, where xx is the major version and yy.zzzz is the minor version.
    • Pattern recipe: Select Plan GenAI.
  6. Click Create.
    The Pattern details page is displayed.
  7. Configure the Pattern and Model.

    You see the following fields:

    • Max iterations: Limits the number of reasoning and action steps the AI agent can take before providing a final answer or exiting. This field prevents infinite loops.
    • Guidelines: Instructions for the LLM as how the AI agent is to reason and think. There are default guidelines provided for you.
    • Model type: Specify the OCI Generative AI model to use. OpenAI and xAI models are supported. See Generative AI Models by Region to find the models supported in your region, and click on the model name to find out the value to specify in this field.
  8. Click Save.

    Oracle Integration automatically creates the integration in your project: Plan Pattern for OCI GenAI.

  9. Click Back Back icon to return to the AI Agents page.
  10. Specify your compartment and region in the OICGenAI_Properties lookup.
    1. In the left toolbar, select Integration Integrations icon.
    2. In the Lookups section, select OICGenAI_Properties.
      The Lookup details page is displayed.
    3. For the Compartment_OCID field, in PropertyValue, specify the OCID of the Oracle Cloud Infrastructure compartment in which Oracle Integration is installed. To find the OCID, see Finding the OCID of a Compartment.
    4. For the Region field, in PropertyValue,make sure the correct region is indicated.
    5. Click Save.