Class RenderWidgetTool
java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
com.kingsrook.qqq.backend.core.actions.ai.tools.RenderWidgetTool
render_widget: render a dashboard widget the current user may see, with the
widget permission check the widget endpoint makes.
Widgets are default-DENY: a widget renderer may read data without the
user's table permissions (e.g., as a system user), so only widgets listed in
the settings' allowedWidgetNames (and not in hiddenWidgetNames) are
rendered. Any other widget gets the same DENIED answer as a missing or
unpermitted one. The widget data is redacted and truncated (strings to
maxCellChars, lists to maxRowsToModel, the whole tree to MAX_TREE_NODES
values) for both the model and the UI.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(AiToolContext context, AiToolInput input) Run the tool - returning the data to send to the model.The tool's description, for the model.The tool's strict input schema (an object schema).getKind()The tool's kind.getName()The tool's wire name (snake_case).Methods inherited from class com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
getDefinition, getInputPropertyNames
-
Field Details
-
NAME
- See Also:
-
MAX_DEPTH
public static final int MAX_DEPTH- See Also:
-
MAX_TREE_NODES
public static final int MAX_TREE_NODES- See Also:
-
-
Constructor Details
-
RenderWidgetTool
public RenderWidgetTool()
-
-
Method Details
-
getName
Description copied from class:AbstractAiToolThe tool's wire name (snake_case).- Specified by:
getNamein classAbstractAiTool
-
getDescription
Description copied from class:AbstractAiToolThe tool's description, for the model.- Specified by:
getDescriptionin classAbstractAiTool
-
getKind
Description copied from class:AbstractAiToolThe tool's kind.- Specified by:
getKindin classAbstractAiTool
-
getInputSchema
Description copied from class:AbstractAiToolThe tool's strict input schema (an object schema).- Specified by:
getInputSchemain classAbstractAiTool
-
execute
Description copied from class:AbstractAiToolRun the tool - returning the data to send to the model.- Specified by:
executein classAbstractAiTool- Throws:
QException
-