Class FileResourceEditorAgent

java.lang.Object
com.inductiveautomation.ignition.designer.fileresources.ai.FileResourceEditorAgent
All Implemented Interfaces:
Agent

public class FileResourceEditorAgent extends Object implements 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.

  • Field Details

  • Constructor Details

  • Method Details

    • getTypeId

      public String getTypeId()
      Description copied from interface: Agent
      Stable type identifier for this agent type. Useful for diagnostics and routing.
      Specified by:
      getTypeId in interface Agent
    • getName

      public String getName()
      Description copied from interface: Agent
      Human-readable name used in logs and routing.
      Specified by:
      getName in interface Agent
    • getDescription

      public String getDescription()
      Description copied from interface: Agent
      Human and Agent readable description used in logs and routing.
      Specified by:
      getDescription in interface Agent
    • getSystemPrompt

      public String getSystemPrompt()
      Description copied from interface: Agent
      System prompt that primes the model for this agent's role.
      Specified by:
      getSystemPrompt in interface Agent
    • getTools

      public List<CallableTool> getTools()
      Description copied from interface: Agent
      Callable tools exposed to the model. Typically built from Tool-annotated methods via Tools.fromAnnotated(Object...), but may include hand-rolled CallableTool implementations. Returns an empty list if the agent declares no tools.
      Specified by:
      getTools in interface Agent
    • getAdditionalContext

      public Optional<String> getAdditionalContext()
      Description copied from interface: Agent
      Supplemental context to be folded into the prompt (e.g. project state, schema, current selection), or empty if none is provided.
      Specified by:
      getAdditionalContext in interface Agent