MCPcopy Create free account
hub / github.com/Integuru-AI/Integuru / format_response

Function format_response

integuru/util/har_processing.py:81–89  ·  view source on GitHub ↗

Extracts and returns the content text and content type from a HAR response.

(har_response: Dict[str, Any])

Source from the content-addressed store, hash-verified

79
80
81def format_response(har_response: Dict[str, Any]) -> Dict[str, str]:
82 """
83 Extracts and returns the content text and content type from a HAR response.
84 """
85 content = har_response.get("content", {})
86 return {
87 "text": content.get("text", ""),
88 "type": content.get("mimeType", "")
89 }
90
91
92def parse_har_file(har_file_path: str) -> Dict[Request, Dict[str, str]]:

Callers 1

parse_har_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected