@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ToolChoice extends Object implements Serializable, Cloneable, StructuredPojo
Forces a model to use a tool.
| Constructor and Description |
|---|
ToolChoice() |
| Modifier and Type | Method and Description |
|---|---|
ToolChoice |
clone() |
boolean |
equals(Object obj) |
AnyToolChoice |
getAny()
The model must request at least one tool (no text is generated).
|
AutoToolChoice |
getAuto()
The Model automatically decides if a tool should be called or to whether to generate text instead.
|
SpecificToolChoice |
getTool()
The Model must request the specified tool.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAny(AnyToolChoice any)
The model must request at least one tool (no text is generated).
|
void |
setAuto(AutoToolChoice auto)
The Model automatically decides if a tool should be called or to whether to generate text instead.
|
void |
setTool(SpecificToolChoice tool)
The Model must request the specified tool.
|
String |
toString()
Returns a string representation of this object.
|
ToolChoice |
withAny(AnyToolChoice any)
The model must request at least one tool (no text is generated).
|
ToolChoice |
withAuto(AutoToolChoice auto)
The Model automatically decides if a tool should be called or to whether to generate text instead.
|
ToolChoice |
withTool(SpecificToolChoice tool)
The Model must request the specified tool.
|
public void setAuto(AutoToolChoice auto)
The Model automatically decides if a tool should be called or to whether to generate text instead.
auto - The Model automatically decides if a tool should be called or to whether to generate text instead.public AutoToolChoice getAuto()
The Model automatically decides if a tool should be called or to whether to generate text instead.
public ToolChoice withAuto(AutoToolChoice auto)
The Model automatically decides if a tool should be called or to whether to generate text instead.
auto - The Model automatically decides if a tool should be called or to whether to generate text instead.public void setAny(AnyToolChoice any)
The model must request at least one tool (no text is generated).
any - The model must request at least one tool (no text is generated).public AnyToolChoice getAny()
The model must request at least one tool (no text is generated).
public ToolChoice withAny(AnyToolChoice any)
The model must request at least one tool (no text is generated).
any - The model must request at least one tool (no text is generated).public void setTool(SpecificToolChoice tool)
The Model must request the specified tool.
tool - The Model must request the specified tool.public SpecificToolChoice getTool()
The Model must request the specified tool.
public ToolChoice withTool(SpecificToolChoice tool)
The Model must request the specified tool.
tool - The Model must request the specified tool.public String toString()
toString in class ObjectObject.toString()public ToolChoice clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.