MCPcopy Index your code
hub / github.com/google/adk-python / UserContent

Class UserContent

tests/unittests/testing_utils.py:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60class UserContent(types.Content):
61
62 def __init__(self, text_or_part: str):
63 parts = [
64 types.Part.from_text(text=text_or_part)
65 if isinstance(text_or_part, str)
66 else text_or_part
67 ]
68 super().__init__(role='user', parts=parts)
69
70
71class ModelContent(types.Content):

Callers 1

get_user_contentFunction · 0.70

Calls

no outgoing calls

Tested by 1

get_user_contentFunction · 0.56