Add the ReAct 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. For OpenAI, Anthropic, or Azure as the LLM, use the ReAct pattern. For OCI Generative AI, use the ReAct for OCI GenAI 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:

    Create pattern screen with fields for name ("ReAct for Simple Expense Approval Agent"), identifier ("REACTPATTERN_FOR_AGENTS"), pattern recipe ("ReAct" selected), and an empty description box. At the bottom are Cancel and Add buttons.

    • 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 populated 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 ReAct.
  6. Click Create.
    The Pattern details page is displayed.
  7. Configure the Pattern and LLM.

    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.
    1. Change any desired fields and click Save.
    2. Under LLM Connections, click Edit icon to configure the LLM connection.
      A new LLM connection is created and is displayed.
    3. Configure connection information for your LLM.

      LLM_Connection configuration page. The left displays properties for the connection, including Base URL "https://api.openapi.com ," model "gpt-4o-mini," and a masked API key for API Key Based Authentication. Configuration progress shows 100%. On the right, a "Save changes?" panel indicates there are no active integrations, but the inactive integration "ReAct Pattern Intg (1.0)" is configured. "Close" and "Save" buttons appear at the bottom.

      • Base URL: URL to connect to your LLM. For example: https://api.openai.com.
      • Model: Model to use for your AI agent. For example: gpt-4o-mini
      • API Key Based Authentication: Specify your API key to connect to the LLM.
    4. Click Test to test that your connection works, then click Save.

      When you save, Oracle Integration creates an integration that implements the ReAct pattern called ReAct Pattern Intg in the Integrations section. This system-created integration is automatically activated.

  8. Click Back Back icon to return to the Pattern details page.
  9. Click Back Back icon to return to the AI Agents page.