Package com.anthropic.models.beta.dreams
Interface BetaDreamInput.Visitor
-
- All Implemented Interfaces:
public interface BetaDreamInput.Visitor<T extends Object>An interface that defines how to map each variant of BetaDreamInput to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitMemoryStore(BetaDreamMemoryStoreInput memoryStore)The memory store that a dream reads, given as an entry in inputs.abstract TvisitSessions(BetaDreamSessionsInput sessions)The sessions that a dream reads, given as an entry in inputs.Tunknown(JsonValue json)Maps an unknown variant of BetaDreamInput to a value of type T. -
-
Method Detail
-
visitMemoryStore
abstract T visitMemoryStore(BetaDreamMemoryStoreInput memoryStore)
The memory store that a dream reads, given as an entry in
inputs.With
output_behaviorset toupdate_existing, the dream writes its result into this memory store. Otherwise the dream doesn't change it.
-
visitSessions
abstract T visitSessions(BetaDreamSessionsInput sessions)
The sessions that a dream reads, given as an entry in
inputs.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaDreamInput to a value of type T.
An instance of BetaDreamInput 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.
-
-
-
-