MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _normalize_session_name

Function _normalize_session_name

server/routes/execute_sync.py:35–39  ·  view source on GitHub ↗
(yaml_path: Path, session_name: Optional[str])

Source from the content-addressed store, hash-verified

33
34
35def _normalize_session_name(yaml_path: Path, session_name: Optional[str]) -> str:
36 if session_name and session_name.strip():
37 return session_name.strip()
38 timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
39 return f"sdk_{yaml_path.stem}_{timestamp}"
40
41
42def _resolve_yaml_path(yaml_file: Union[str, Path]) -> Path:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected