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

Function fetch_app_server_events

scripts/issue_duplicate_check_openhands.py:338–349  ·  view source on GitHub ↗
(app_conversation_id: str)

Source from the content-addressed store, hash-verified

336
337
338def fetch_app_server_events(app_conversation_id: str) -> list[dict[str, Any]]:
339 payload = request_json(
340 OPENHANDS_BASE_URL,
341 f'/api/v1/conversation/{urllib.parse.quote(app_conversation_id)}/events/search?limit={EVENT_SEARCH_LIMIT}',
342 headers={'Authorization': openhands_headers()['Authorization']},
343 )
344 if isinstance(payload, dict):
345 items = payload.get('items')
346 return validate_event_search_results(items) if isinstance(items, list) else []
347 if isinstance(payload, list):
348 return validate_event_search_results(payload)
349 return []
350
351
352def fetch_agent_server_events(

Callers 1

mainFunction · 0.70

Calls 4

request_jsonFunction · 0.70
openhands_headersFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected