(conversation_url: str)
| 379 | |
| 380 | |
| 381 | def extract_agent_server_url(conversation_url: str) -> str | None: |
| 382 | marker = '/api/conversations/' |
| 383 | if marker not in conversation_url: |
| 384 | return None |
| 385 | return conversation_url.rsplit(marker, 1)[0] |
| 386 | |
| 387 | |
| 388 | def extract_last_agent_text(events: list[dict[str, Any]]) -> str: |