Class DefaultResourceAiDelegate.Builder
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DefaultResourceAiDelegate.Builder
- Enclosing class:
DefaultResourceAiDelegate
-
Method Summary
Modifier and TypeMethodDescriptionbuild()capability(@NonNull ResourceAiDelegate.AiCapability capability) Sets how much of this resource type AI agents may see.description(@Nullable String description) Sets the prose description handed to the model as context for this resource type.Builds this resource type's diagnostic contributions inline.sensitiveKey(String fieldName) A configuration field that must be blanked before this type's configuration reaches an agent.withDiagnostics(ResourceDiagnostics diagnostics) Supplies diagnostics built elsewhere, for a subsystem that assembles them from its own manager rather than inline.
-
Method Details
-
capability
public DefaultResourceAiDelegate.Builder capability(@NonNull ResourceAiDelegate.AiCapability capability) Sets how much of this resource type AI agents may see.- Parameters:
capability- the highest capability to grant;ResourceAiDelegate.AiCapability.Readif never called.- See Also:
-
description
Sets the prose description handed to the model as context for this resource type.- Parameters:
description- a plain, non-localized English description.- See Also:
-
sensitiveKey
A configuration field that must be blanked before this type's configuration reaches an agent. May be called repeatedly.- See Also:
-
diagnostics
public DefaultResourceAiDelegate.Builder diagnostics(Consumer<DefaultResourceDiagnostics.Builder> consumer) Builds this resource type's diagnostic contributions inline.- Throws:
IllegalStateException- if diagnostics were already set.- See Also:
-
withDiagnostics
Supplies diagnostics built elsewhere, for a subsystem that assembles them from its own manager rather than inline.- Throws:
IllegalStateException- if diagnostics were already set.
-
build
-