MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / _normalizeEditData

Function _normalizeEditData

helpers/projects.py:203–226  ·  view source on GitHub ↗
(data: EditProjectData)

Source from the content-addressed store, hash-verified

201
202
203def _normalizeEditData(data: EditProjectData) -> EditProjectData:
204 normalized: EditProjectData = {
205 "name": data.get("name", ""),
206 "title": data.get("title", ""),
207 "description": data.get("description", ""),
208 "instructions": data.get("instructions", ""),
209 "include_agents_md": _normalize_include_agents_md(
210 data.get("include_agents_md", True)
211 ),
212 "variables": data.get("variables", ""),
213 "mcp_servers": data.get("mcp_servers", DEFAULT_MCP_SERVERS_CONFIG),
214 "color": data.get("color", ""),
215 "git_url": data.get("git_url", ""),
216 "git_status": data.get("git_status", {"is_git_repo": False}),
217 "instruction_files_count": data.get("instruction_files_count", 0),
218 "knowledge_files_count": data.get("knowledge_files_count", 0),
219 "secrets": data.get("secrets", ""),
220 "file_structure": data.get(
221 "file_structure",
222 _default_file_structure_settings(),
223 ),
224 "subagents": data.get("subagents", {}),
225 }
226 return normalized
227
228
229def _edit_data_to_basic_data(data: EditProjectData):

Callers 3

_basic_data_to_edit_dataFunction · 0.85
update_projectFunction · 0.85
load_edit_project_dataFunction · 0.85

Calls 3

getMethod · 0.45

Tested by

no test coverage detected