MCPcopy Create free account
hub / github.com/Louisym/MiniCC / with_os

Method with_os

tutorials/06_system_prompt_builder.py:312–316  ·  view source on GitHub ↗

添加操作系统信息

(self, os_name: str, os_version: str)

Source from the content-addressed store, hash-verified

310 self._extra_sections: list[str] = []
311
312 def with_os(self, os_name: str, os_version: str) -> "SystemPromptBuilder":
313 """添加操作系统信息"""
314 self._os_name = os_name
315 self._os_version = os_version
316 return self
317
318 def with_project_context(self, ctx: ProjectContext) -> "SystemPromptBuilder":
319 """添加项目上下文"""

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected