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

Function append_user_content

tests/unittests/testing_utils.py:109–119  ·  view source on GitHub ↗
(
    invocation_context: InvocationContext, parts: list[types.Part]
)

Source from the content-addressed store, hash-verified

107
108
109def append_user_content(
110 invocation_context: InvocationContext, parts: list[types.Part]
111) -> Event:
112 session = invocation_context.session
113 event = Event(
114 invocation_id=invocation_context.invocation_id,
115 author='user',
116 content=types.Content(role='user', parts=parts),
117 )
118 session.events.append(event)
119 return event
120
121
122# Extracts the contents from the events and transform them into a list of

Callers 1

Calls 2

EventClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected