Uses of Class
group.worldstandard.pudel.api.agent.ToolDefinition.Builder
Packages that use ToolDefinition.Builder
-
Uses of ToolDefinition.Builder in group.worldstandard.pudel.api.agent
Methods in group.worldstandard.pudel.api.agent that return ToolDefinition.BuilderModifier and TypeMethodDescriptionstatic ToolDefinition.BuilderToolDefinition.builder()Creates and returns a new instance of theToolDefinition.Builderclass for constructingToolDefinitioninstances.ToolDefinition.Builder.description(String description) Sets the description of the tool.ToolDefinition.Builder.dmOnly(boolean dmOnly) Sets whether the tool can only be used in direct messages.ToolDefinition.Builder.executor(BiFunction<AgentToolContext, Map<String, Object>, String> executor) Sets the executor function for this tool.ToolDefinition.Builder.guildOnly(boolean guildOnly) Sets whether the tool can only be used within a guild context.Adds a keyword to the tool being built.Adds multiple keywords to the tool being built.ToolDefinition.Builder.keywords(Collection<String> keywords) Sets the keywords associated with the tool being built.Sets the name for the builder instance.ToolDefinition.Builder.parameter(ToolDefinition.ToolParameter parameter) Adds a parameter to the tool being built.Adds a parameter to the tool being built.ToolDefinition.Builder.parameter(String name, Class<?> type, String description, boolean required, Object defaultValue) Adds a parameter to the tool being built with a default value.ToolDefinition.Builder.permission(AgentTool.ToolPermission permission) Sets the permission level required to use the tool.Sets the plugin identifier for the tool being built.ToolDefinition.Builder.priority(int priority) Sets the priority level for the tool being built.