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

Function get_host_env

agentops/helpers/system.py:160–178  ·  view source on GitHub ↗
(opt_out: bool = False)

Source from the content-addressed store, hash-verified

158
159
160def get_host_env(opt_out: bool = False):
161 if opt_out:
162 return {
163 "SDK": get_sdk_details(),
164 "OS": get_os_details(),
165 "Project Working Directory": get_current_directory(),
166 "Virtual Environment": get_virtual_env(),
167 }
168 else:
169 return {
170 "SDK": get_sdk_details(),
171 "OS": get_os_details(),
172 "CPU": get_cpu_details(),
173 "RAM": get_ram_details(),
174 "Disk": get_disk_details(),
175 "Installed Packages": get_installed_packages(),
176 "Project Working Directory": get_current_directory(),
177 "Virtual Environment": get_virtual_env(),
178 }

Callers

nothing calls this directly

Calls 8

get_sdk_detailsFunction · 0.85
get_os_detailsFunction · 0.85
get_current_directoryFunction · 0.85
get_virtual_envFunction · 0.85
get_cpu_detailsFunction · 0.85
get_ram_detailsFunction · 0.85
get_disk_detailsFunction · 0.85
get_installed_packagesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…