Class DesignerEnvironmentFacts
java.lang.Object
com.inductiveautomation.ignition.designer.ai.context.DesignerEnvironmentFacts
Renders a markdown
## Environment block summarising durable session facts — Ignition
version and edition, current date, logged-in user, current project, gateway address and timezone,
and project-level defaults — for embedding in an AI agent's system prompt.
Each get() call reads live state from the bound DesignerContext and gateway
connection, so values reflect the session at the moment the system prompt is built (typically
once per harness construction or clearMemory() call).
Example:
DesignerEnvironmentFacts facts = new DesignerEnvironmentFacts(designerContext);
// In an Agent.getSystemPrompt() implementation:
return SYSTEM_PROMPT_TEMPLATE.formatted(facts.get());
-
Constructor Summary
ConstructorsConstructorDescriptionDesignerEnvironmentFacts(DesignerContext context) Creates a facts supplier bound to the given context. -
Method Summary
-
Constructor Details
-
DesignerEnvironmentFacts
Creates a facts supplier bound to the given context.- Parameters:
context- the Designer context to read environment facts from on each call.
-
-
Method Details