Skip to content

Commit e84c9c3

Browse files
committed
refactor: simplify instruction generation in LiveAgent
1 parent 82a5837 commit e84c9c3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

agentflow/core/realtime/live_agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,7 @@ async def _resolve_session_system_instruction(
323323
prompts = prompts + await self._build_memory_prompts(state, config)
324324
prompts = _interpolate_system_prompts(prompts, state)
325325

326-
instruction = "\n\n".join(
327-
str(p["content"]) for p in prompts if p.get("content")
328-
).strip()
326+
instruction = "\n\n".join(str(p["content"]) for p in prompts if p.get("content")).strip()
329327
if not instruction:
330328
return rt
331329
return rt.model_copy(update={"system_instruction": instruction})

0 commit comments

Comments
 (0)