Package com.openai.models.beta.realtime
Class SessionUpdateEvent.Session.Tool
-
- All Implemented Interfaces:
public final class SessionUpdateEvent.Session.Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
SessionUpdateEvent.Session.Tool.Builder
A builder for Tool.
public final class
SessionUpdateEvent.Session.Tool.Type
The type of the tool, i.e.
function
.
-
Method Summary
Modifier and Type Method Description final Optional<String>
description()
The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything). final Optional<String>
name()
The name of the function. final JsonValue
_parameters()
Parameters of the function in JSON Schema. final Optional<SessionUpdateEvent.Session.Tool.Type>
type()
The type of the tool, i.e. final JsonField<String>
_description()
Returns the raw JSON value of description. final JsonField<String>
_name()
Returns the raw JSON value of name. final JsonField<SessionUpdateEvent.Session.Tool.Type>
_type()
Returns the raw JSON value of type. final Map<String, JsonValue>
_additionalProperties()
final SessionUpdateEvent.Session.Tool.Builder
toBuilder()
final SessionUpdateEvent.Session.Tool
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static SessionUpdateEvent.Session.Tool.Builder
builder()
Returns a mutable builder for constructing an instance of Tool. -
-
Method Detail
-
description
final Optional<String> description()
The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything).
-
_parameters
final JsonValue _parameters()
Parameters of the function in JSON Schema.
-
type
final Optional<SessionUpdateEvent.Session.Tool.Type> type()
The type of the tool, i.e.
function
.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<SessionUpdateEvent.Session.Tool.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionUpdateEvent.Session.Tool.Builder toBuilder()
-
validate
final SessionUpdateEvent.Session.Tool validate()
-
builder
final static SessionUpdateEvent.Session.Tool.Builder builder()
Returns a mutable builder for constructing an instance of Tool.
-
-
-
-