MCPcopy Create free account
hub / github.com/MemTensor/MemOS / get_current_api_path

Function get_current_api_path

src/memos/context/context.py:116–123  ·  view source on GitHub ↗

Get the current request's api path.

()

Source from the content-addressed store, hash-verified

114
115
116def get_current_api_path() -> str | None:
117 """
118 Get the current request's api path.
119 """
120 context = _request_context.get()
121 if context:
122 return context.get("api_path")
123 return None
124
125
126def get_current_env() -> str | None:

Callers 10

filterMethod · 0.90
emitMethod · 0.90
is_playground_apiFunction · 0.90
submit_messagesMethod · 0.90
_submit_web_logsMethod · 0.90
submit_messagesMethod · 0.90
__init__Method · 0.85
submitMethod · 0.85
mapMethod · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected