MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / extract_agent_server_url

Function extract_agent_server_url

scripts/issue_duplicate_check_openhands.py:381–385  ·  view source on GitHub ↗
(conversation_url: str)

Source from the content-addressed store, hash-verified

379
380
381def 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
388def extract_last_agent_text(events: list[dict[str, Any]]) -> str:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected