public static class CohereTool.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CohereTool |
build() |
CohereTool.Builder |
copy(CohereTool model) |
CohereTool.Builder |
description(String description)
The description of what the tool does, the model uses the description to choose when and
how to call the function.
|
CohereTool.Builder |
name(String name)
The name of the tool to be called.
|
CohereTool.Builder |
parameterDefinitions(Map<String,CohereParameterDefinition> parameterDefinitions)
The input parameters of the tool.
|
public CohereTool.Builder name(String name)
The name of the tool to be called. Valid names contain only the characters a-z, A-Z, 0-9, _ and must not begin with a digit.
name
- the value to setpublic CohereTool.Builder description(String description)
The description of what the tool does, the model uses the description to choose when and how to call the function.
description
- the value to setpublic CohereTool.Builder parameterDefinitions(Map<String,CohereParameterDefinition> parameterDefinitions)
The input parameters of the tool.
parameterDefinitions
- the value to setpublic CohereTool build()
public CohereTool.Builder copy(CohereTool model)
Copyright © 2016–2024. All rights reserved.