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

Method to_dict

codewiki/cli/models/config.py:160–179  ·  view source on GitHub ↗

Convert to dictionary.

(self)

Source from the content-addressed store, hash-verified

158 request_limit: Maximum model requests per agent run (default: 100)
159 agent_retries: Retries for a failing tool call (default: 3)
160 use_gitignore: Apply Git ignore rules during repository analysis
161 prompt_caching: Add prompt-cache breakpoints to agentic LLM calls (default: True)
162 agent_instructions: Custom agent instructions for documentation generation
163 """
164
165 base_url: str
166 main_model: str
167 cluster_model: str
168 fallback_model: str = "glm-4p5"
169 default_output: str = "docs"
170 provider: str = "openai-compatible"
171 aws_region: str = "us-east-1"
172 api_version: str = "2024-12-01-preview"
173 azure_deployment: str = ""
174 max_tokens: int = 32768
175 max_token_per_module: int = 36369
176 max_token_per_leaf_module: int = 16000
177 max_depth: int = 2
178 request_limit: int = 100
179 agent_retries: int = 3
180 use_gitignore: bool = True
181 prompt_caching: bool = True
182 agent_instructions: AgentInstructions = field(default_factory=AgentInstructions)

Callers 3

saveMethod · 0.45
config_showFunction · 0.45
generate_commandFunction · 0.45

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected