Interface BetaMessageThreadParam.Visitor
-
- All Implemented Interfaces:
public interface BetaMessageThreadParam.Visitor<T extends Object>An interface that defines how to map each variant of BetaMessageThreadParam to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitCreate(BetaThreadCreateParams create)Start holding conversation state under this response's `id`.abstract TvisitContinue(BetaThreadContinueParams continue_)Resume from the response named by `previous_message_id`.Tunknown(JsonValue json)Maps an unknown variant of BetaMessageThreadParam to a value of type T. -
-
Method Detail
-
visitCreate
abstract T visitCreate(BetaThreadCreateParams create)
Start holding conversation state under this response's
`id`.
-
visitContinue
abstract T visitContinue(BetaThreadContinueParams continue_)
Resume from the response named by
`previous_message_id`.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaMessageThreadParam to a value of type T.
An instance of BetaMessageThreadParam can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-