StreamingSession
commit and update send control messages; consume the corresponding acknowledgement before sending the next turn. finish requests a graceful end; keep iterating until session.closed. Context exit always closes the socket.
-
Parameters:
- url (str)
- credential (str)
- state (_State)
ready
send_audio()
- Parameters: audio (bytes)
- Return type: None
commit()
- Return type: None
update()
-
Parameters:
- state (str |dict[str, Any*]* | list*[str]*)
- questions (Mapping*[str,* ChoiceQuestion |NoulQuestion |ChoiceQuestionParam |NoulQuestionParam])
- Return type: None
finish()
- Return type: None
__next__()
- Return type: SessionUpdated | DecisionEvent | SessionClosed | ErrorEvent | UnknownEvent
close()
- Return type: None
AsyncStreamingSession
-
Parameters:
- url (str)
- credential (str)
- state (_State)
ready
send_audio()
- Parameters: audio (bytes)
- Return type: None
commit()
- Return type: None
update()
-
Parameters:
- state (str |dict[str, Any*]* | list*[str]*)
- questions (Mapping*[str,* ChoiceQuestion |NoulQuestion |ChoiceQuestionParam |NoulQuestionParam])
- Return type: None
finish()
- Return type: None
__anext__()
- Return type: SessionUpdated | DecisionEvent | SessionClosed | ErrorEvent | UnknownEvent
close()
- Return type: None