NotesSelect AIAI agentsJava

Select AI agents now run from Java. They still live in the database

Select AI for Java now manages database-defined tools, tasks, agents and teams. Your Java code drives them; the agents run in Autonomous AI Database.

Oracle's October 2026 update to Autonomous AI Database adds agent support to Select AI for Java. The tools, tasks, agents and teams are still defined and run in the database. Your Java code creates them, runs them and resumes them.

What to know

  • There are Tool, Task, Agent and Team classes. Nothing exists in the database until you call create().
  • Built-in tool types include SQL, RAG, web search, email and Slack.
  • An agent runs only inside a team. runTeam(name, request) starts a run or resumes one.
  • The database creates the conversation ID. Keep it: you need it to resume a run or to reply when the run pauses for human input.
  • Others run a shared team by its owner-qualified name. The grant lets them run it, but not change, export, disable or drop it.
  • You need com.oracle.database.selectai:select-ai 1.1.0 or later, on JDK 17 or later.

Don't auto-retry after a timeout

If a team run times out on the Java side, the database may still be working on it. Check the team's state by conversation ID before you send the request again, or the work can run twice.

My take: keep the agent definitions in the database and treat Java, APEX or anything else as a caller. Source: Select AI for Java: agents.

Get the Oracle + AI digest

One email when a new tested guide, template or APEX release note lands — English or Arabic. No spam; unsubscribe anytime.