Classes
Methods
# _buildSystemPrompt()
Build the system prompt for the agent Loads from external markdown file and applies variables
# _ensureInitialized()
Initialize OpenAI client lazily Uses shared getAIClient utility for OpenAI/xAI support
# async execute(query, securityContext, options) → {Promise.<Object>}
Execute a complex query using the AI agent
Parameters:
| Name | Type | Description |
|---|---|---|
query |
string
|
User's natural language query |
securityContext |
Object
|
User security context |
options |
Object
|
Execution options |
showReasoning |
boolean
|
Include reasoning steps in response |
Agent response
Promise.<Object>