mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
feat: Add support for store audio and transcription into events/sessions and artifacts
PiperOrigin-RevId: 798011660
This commit is contained in:
committed by
Copybara-Service
parent
f660180854
commit
ddb070ff07
@@ -40,6 +40,8 @@ class LlmResponse(BaseModel):
|
||||
interrupted: Flag indicating that LLM was interrupted when generating the
|
||||
content. Usually it's due to user interruption during a bidi streaming.
|
||||
custom_metadata: The custom metadata of the LlmResponse.
|
||||
input_transcription: Audio transcription of user input.
|
||||
output_transcription: Audio transcription of model output.
|
||||
"""
|
||||
|
||||
model_config = ConfigDict(
|
||||
@@ -97,6 +99,12 @@ class LlmResponse(BaseModel):
|
||||
] = None
|
||||
"""The session resumption update of the LlmResponse"""
|
||||
|
||||
input_transcription: Optional[types.Transcription] = None
|
||||
"""Audio transcription of user input."""
|
||||
|
||||
output_transcription: Optional[types.Transcription] = None
|
||||
"""Audio transcription of model output."""
|
||||
|
||||
@staticmethod
|
||||
def create(
|
||||
generate_content_response: types.GenerateContentResponse,
|
||||
|
||||
Reference in New Issue
Block a user