Class FileResourceEditorAgent
java.lang.Object
com.inductiveautomation.ignition.designer.fileresources.ai.FileResourceEditorAgent
- All Implemented Interfaces:
Agent
Agent for the File Resource Editor.
The system prompt is a runtime protocol document for the assistant. Keep it in lockstep with
the EmbedHost.forTextEditorWithInsert(TextlikeComponent)
host it's mounted on, whose ResponseEnvelope.Suggestion handling defines
how the prompt's <editor>/<selection> wrapping and value semantics are
actually applied to the buffer.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Agent
Agent.AgentFactory -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileResourceEditorAgent(DesignerToolFactory toolFactory, String contentType, String fileName) -
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
-
FileResourceEditorAgent
public FileResourceEditorAgent(DesignerToolFactory toolFactory, String contentType, String fileName)
-
-
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
-