File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
examples/google_adk/calendar_agent Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1+ adk
2+ AError
3+ ARequest
4+ AStarlette
5+ genai
6+ inmemory
7+ lifecycles
8+ oauthoidc
9+ sse
Original file line number Diff line number Diff line change @@ -237,12 +237,12 @@ def _upsert_session(self, session_id: str):
237237
238238
239239def convert_a2a_parts_to_genai (parts : list [Part ]) -> list [types .Part ]:
240- """Convert a list of A2A Part types into a list of Google GenAI Part types."""
240+ """Convert a list of A2A Part types into a list of Google Gen AI Part types."""
241241 return [convert_a2a_part_to_genai (part ) for part in parts ]
242242
243243
244244def convert_a2a_part_to_genai (part : Part ) -> types .Part :
245- """Convert a single A2A Part type into a Google GenAI Part type."""
245+ """Convert a single A2A Part type into a Google Gen AI Part type."""
246246 part = part .root
247247 if isinstance (part , TextPart ):
248248 return types .Part (text = part .text )
@@ -264,7 +264,7 @@ def convert_a2a_part_to_genai(part: Part) -> types.Part:
264264
265265
266266def convert_genai_parts_to_a2a (parts : list [types .Part ]) -> list [Part ]:
267- """Convert a list of Google GenAI Part types into a list of A2A Part types."""
267+ """Convert a list of Google Gen AI Part types into a list of A2A Part types."""
268268 return [
269269 convert_genai_part_to_a2a (part )
270270 for part in parts
@@ -273,7 +273,7 @@ def convert_genai_parts_to_a2a(parts: list[types.Part]) -> list[Part]:
273273
274274
275275def convert_genai_part_to_a2a (part : types .Part ) -> Part :
276- """Convert a single Google GenAI Part type into an A2A Part type."""
276+ """Convert a single Google Gen AI Part type into an A2A Part type."""
277277 if part .text :
278278 return TextPart (text = part .text )
279279 if part .file_data :
You can’t perform that action at this time.
0 commit comments