MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / get

Method get

agentops/client/api/base.py:122–133  ·  view source on GitHub ↗

Make async GET request Args: path: API endpoint path headers: Request headers Returns: JSON response as dictionary, or None if request failed

(self, path: str, headers: Dict[str, str])

Source from the content-addressed store, hash-verified

120 return await self.async_request("post", path, data=data, headers=headers)
121
122 async def get(self, path: str, headers: Dict[str, str]) -> Optional[Dict[str, Any]]:
123 """
124 Make async GET request
125
126 Args:
127 path: API endpoint path
128 headers: Request headers
129
130 Returns:
131 JSON response as dictionary, or None if request failed
132 """
133 return await self.async_request("get", path, headers=headers)
134
135 async def put(self, path: str, data: Dict[str, Any], headers: Dict[str, str]) -> Optional[Dict[str, Any]]:
136 """

Callers 15

get_trace_detailsFunction · 0.45
get_trace_metricsFunction · 0.45
check_llm_spansFunction · 0.45
validate_trace_spansFunction · 0.45
print_validation_summaryFunction · 0.45
initMethod · 0.45
fetch_auth_tokenMethod · 0.45
configure_loggingFunction · 0.45
formatMethod · 0.45
get_imported_librariesFunction · 0.45
get_installed_packagesFunction · 0.45
get_virtual_envFunction · 0.45

Calls 1

async_requestMethod · 0.95

Tested by

no test coverage detected