Skip to content

Commit 375fbef

Browse files
committed
refactor: rename SessionInput.events to conversation_history for clarity
1 parent 90ee937 commit 375fbef

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/google/adk/evaluation/eval_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class SessionInput(EvalBaseModel):
125125
state: SessionState = Field(default_factory=dict)
126126
"""The state of the session."""
127127

128-
events: Optional[list[Event]] = None
128+
conversation_history: Optional[list[Event]] = None
129129
"""Optional list of events to seed the session with prior conversation history.
130130
131131
When provided, these events are appended to the session after creation but

src/google/adk/evaluation/evaluation_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ async def _generate_inferences_from_root_agent(
567567

568568
# Seed session with prior conversation history so that eval turns
569569
# run with realistic prior context without being scored.
570-
if initial_session and initial_session.events:
571-
for event in initial_session.events:
570+
if initial_session and initial_session.conversation_history:
571+
for event in initial_session.conversation_history:
572572
await session_service.append_event(session=session, event=event)
573573

574574
if not artifact_service:

0 commit comments

Comments
 (0)