Package com.axelor.ai

Interface AiService.AgentCall

Enclosing interface:
AiService

public static interface AiService.AgentCall
Fluent builder for agent invocations.
  • Method Details

    • context

      AiService.AgentCall context(Map<String,Object> context)
      Pass context variables to the agent (e.g. current record model/id).
    • internal

      Target an internal agent. Server-initiated use only: skips the top-level access gate the way sub-agent consultations do (internal agents are never callable from the UI/API — the endpoint enforces that independently).
    • ask

      String ask(String message)
      Run the agent and return text response.
    • ask

      <T> T ask(String message, Class<T> outputType)
      Run the agent and parse response as structured output.