Class CohereTool.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.CohereTool.Builder
-
- Enclosing class:
- CohereTool
public static class CohereTool.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
name
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.
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public 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.- Parameters:
description
- the value to set- Returns:
- this builder
-
parameterDefinitions
public CohereTool.Builder parameterDefinitions(Map<String,CohereParameterDefinition> parameterDefinitions)
The input parameters of the tool.- Parameters:
parameterDefinitions
- the value to set- Returns:
- this builder
-
build
public CohereTool build()
-
copy
public CohereTool.Builder copy(CohereTool model)
-
-