MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / _normalizeBasicData

Function _normalizeBasicData

helpers/projects.py:186–200  ·  view source on GitHub ↗
(data: BasicProjectData)

Source from the content-addressed store, hash-verified

184
185
186def _normalizeBasicData(data: BasicProjectData) -> BasicProjectData:
187 return {
188 "title": data.get("title", ""),
189 "description": data.get("description", ""),
190 "instructions": data.get("instructions", ""),
191 "include_agents_md": _normalize_include_agents_md(
192 data.get("include_agents_md", True)
193 ),
194 "color": data.get("color", ""),
195 "git_url": data.get("git_url", ""),
196 "file_structure": data.get(
197 "file_structure",
198 _default_file_structure_settings(),
199 ),
200 }
201
202
203def _normalizeEditData(data: EditProjectData) -> EditProjectData:

Callers 4

create_projectFunction · 0.85
clone_git_projectFunction · 0.85
_edit_data_to_basic_dataFunction · 0.85
load_basic_project_dataFunction · 0.85

Calls 3

getMethod · 0.45

Tested by

no test coverage detected