Class ComponentPropsAgent
java.lang.Object
com.inductiveautomation.perspective.designer.workspace.propertyeditor.ai.ComponentPropsAgent
- All Implemented Interfaces:
Agent
Agent that proposes targeted edits to a single Perspective component's PROPS tree. The
agent receives the component's identity and its PROPS JsonSchema once at session start
via getAdditionalContext(), and the current PROPS JSON on every turn (wrapped in a
<currentProps> block by ComponentPropsPromptComposer). Replies are produced as a
ResponseEnvelope — STATEMENT for
clarifying questions or explanations, SUGGESTION when proposing changes; the SUGGESTION
value is a JSON-encoded PropTreeReply payload.-
Nested Class Summary
Nested classes/interfaces inherited from interface Agent
Agent.AgentFactory -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComponentPropsAgent(String componentType, String componentName, String componentPath, @Nullable String componentDescription, @Nullable JsonSchema propsSchema) -
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
-
ComponentPropsAgent
public ComponentPropsAgent(String componentType, String componentName, String componentPath, @Nullable String componentDescription, @Nullable JsonSchema propsSchema)
-
-
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
-