Package com.axelor.ai
Interface AiService.AgentCall
- Enclosing interface:
AiService
public static interface AiService.AgentCall
Fluent builder for agent invocations.
-
Method Summary
Modifier and TypeMethodDescriptionRun the agent and return text response.<T> TRun the agent and parse response as structured output.Pass context variables to the agent (e.g.internal()Target an internal agent.
-
Method Details
-
context
Pass context variables to the agent (e.g. current record model/id). -
internal
AiService.AgentCall 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
Run the agent and return text response. -
ask
Run the agent and parse response as structured output.
-