MCPcopy Create free account
hub / github.com/agi-inc/agent-protocol / get_workspace

Method get_workspace

packages/sdk/python/agent_protocol/agent.py:228–232  ·  view source on GitHub ↗

Get the workspace path for the specified task.

(task_id: str)

Source from the content-addressed store, hash-verified

226
227 @staticmethod
228 def get_workspace(task_id: str) -> str:
229 """
230 Get the workspace path for the specified task.
231 """
232 return os.path.join(os.getcwd(), Agent.workspace, task_id)
233
234 @staticmethod
235 def get_artifact_folder(task_id: str, artifact: Artifact) -> str:

Callers 2

get_artifact_folderMethod · 0.80
_generate_codeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected