diff --git a/src/google/adk/agents/transcription_entry.py b/src/google/adk/agents/transcription_entry.py index c59ad88..a44467a 100644 --- a/src/google/adk/agents/transcription_entry.py +++ b/src/google/adk/agents/transcription_entry.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from typing import Optional from typing import Union from google.genai import types @@ -28,8 +29,9 @@ class TranscriptionEntry(BaseModel): ) """The pydantic model config.""" - role: str - """The role that created this data, typically "user" or "model""" + role: Optional[str] = None + """The role that created this data, typically "user" or "model". For function + call, this is None.""" data: Union[types.Blob, types.Content] """The data that can be used for transcription"""