MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / from_args

Method from_args

codewiki/src/config.py:139–155  ·  view source on GitHub ↗

Create configuration from parsed arguments.

(cls, args: argparse.Namespace)

Source from the content-addressed store, hash-verified

137 @property
138 def doc_type(self) -> str | None:
139 """Get documentation type from agent instructions."""
140 if self.agent_instructions:
141 return self.agent_instructions.get("doc_type")
142 return None
143
144 @property
145 def custom_instructions(self) -> str | None:
146 """Get custom instructions from agent instructions."""
147 if self.agent_instructions:
148 return self.agent_instructions.get("custom_instructions")
149 return None
150
151 def get_prompt_addition(self) -> str:
152 """Generate prompt additions based on agent instructions."""
153 if not self.agent_instructions:
154 return ""
155
156 additions = []
157
158 if self.doc_type:

Callers 2

_process_jobMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected