feat: Add support for store audio and transcription into events/sessions and artifacts

PiperOrigin-RevId: 798011660
This commit is contained in:
Hangfei Lin
2025-08-21 19:50:26 -07:00
committed by Copybara-Service
parent f660180854
commit ddb070ff07
11 changed files with 1493 additions and 19 deletions
+12
View File
@@ -41,6 +41,18 @@ from google.genai.types import Part
from typing_extensions import override
def create_test_agent(name: str = 'test_agent') -> LlmAgent:
"""Create a simple test agent for use in unit tests.
Args:
name: The name of the test agent.
Returns:
A configured LlmAgent instance suitable for testing.
"""
return LlmAgent(name=name)
class UserContent(types.Content):
def __init__(self, text_or_part: str):