Package com.google.genai.gaos
Interface ContinuationEventStream.HopOpener
- Enclosing class:
- ContinuationEventStream
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Opens the stream of a continuation hop.
-
Method Summary
Modifier and TypeMethodDescriptionSends a continuation request resuming fromtoken.
-
Method Details
-
open
@Nullable EventStream<InteractionSSEStreamEvent> open(String token, @Nullable String tokenOwnerId) throws Exception Sends a continuation request resuming fromtoken.- Parameters:
token- thecontinuation_tokento resume fromtokenOwnerId- the id of the interaction that issuedtoken, or null for the caller's own token- Returns:
- the hop's event stream, or null if the response was not a stream (ends the stream)
- Throws:
Exception
-