Class NamedQueryAgent
java.lang.Object
com.inductiveautomation.ignition.designer.db.namedquery.workspace.ai.NamedQueryAgent
- All Implemented Interfaces:
Agent
Agent powering the "Build with AI" popup on the Named Query authoring panel. The system prompt
describes the wire format emitted by
NamedQueryPromptComposer and the reply contract
parsed by NamedQueryReplyRenderer — three contracts in three files; if any one moves the
other two must move with it.
Exposes the NamedQuerySchemaTools lookups so the agent can ground its suggestions in
the actual database schema. The tools self-report when the user has selected the Parameter
datasource option, so we can register them unconditionally and let the agent learn at call time
that no schema is available.
Also exposes the DatasourceTools lookups so the agent can ground its suggestions in
the actual datasources available on the gateway when the user does not have a specific datasource
selected.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Agent
Agent.AgentFactory -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplemental context to be folded into the prompt (e.g.Human and Agent readable description used in logs and routing.getName()Human-readable name used in logs and routing.System prompt that primes the model for this agent's role.getTools()Callable tools exposed to the model.Stable type identifier for this agent type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Agent
getMaxTurnsPerInvocation, toBuilder
-
Field Details
-
TYPE_ID
- See Also:
-
-
Constructor Details
-
NamedQueryAgent
- Parameters:
snapshotSupplier- supplies the panel's live state — passed through to the schema tools so they always resolve against the currently selected datasource rather than the one in effect when the popup opened.
-
-
Method Details
-
getTypeId
-
getName
-
getDescription
Description copied from interface:AgentHuman and Agent readable description used in logs and routing.- Specified by:
getDescriptionin interfaceAgent
-
getSystemPrompt
Description copied from interface:AgentSystem prompt that primes the model for this agent's role.- Specified by:
getSystemPromptin interfaceAgent
-
getTools
Description copied from interface:AgentCallable tools exposed to the model. Typically built fromTool-annotated methods viaTools.fromAnnotated(Object...), but may include hand-rolledCallableToolimplementations. Returns an empty list if the agent declares no tools. -
getAdditionalContext
Description copied from interface:AgentSupplemental context to be folded into the prompt (e.g. project state, schema, current selection), or empty if none is provided.- Specified by:
getAdditionalContextin interfaceAgent
-