Package dev.dokimos.core.agents
Class ToolDefinition.Builder
java.lang.Object
dev.dokimos.core.agents.ToolDefinition.Builder
- Enclosing class:
ToolDefinition
Builder for constructing tool definitions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the tool definition.description(String description) Sets the tool description.inputSchema(Map<String, Object> inputSchema) Sets the input schema.Sets the tool name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the tool name.- Parameters:
name- the tool name- Returns:
- this builder
-
description
Sets the tool description.- Parameters:
description- the tool description- Returns:
- this builder
-
inputSchema
Sets the input schema.- Parameters:
inputSchema- the JSON Schema map- Returns:
- this builder
-
build
Builds the tool definition.- Returns:
- a new tool definition
-