You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Generate detailed description of a given sub-module specs to the sub-agents
21
+
"""Delegate documentation generation of sub-modules to sub-agents. Each sub-module will be documented separately.
21
22
22
23
Args:
23
-
sub_module_specs: The specs of the sub-modules to generate documentation for. E.g. {"sub_module_1": ["core_component_1.1", "core_component_1.2"], "sub_module_2": ["core_component_2.1", "core_component_2.2"], ...}
24
+
sub_module_specs: A dictionary mapping sub-module names to their core component IDs.
Each key is a descriptive sub-module name, and the value is a list of component IDs from the current module's core components that belong to that sub-module.
returnf"Generate successfully. Documentations: {', '.join([key+'.md'forkeyinsub_module_specs.keys()])} are saved in the working directory."
90
93
91
94
92
-
generate_sub_module_documentation_tool=Tool(function=generate_sub_module_documentation, name="generate_sub_module_documentation", description="Generate detailed description of a given sub-module specs to the sub-agents", takes_ctx=True)
component_ids: The ids of the components to read, e.g. ["sweagent.types.AgentRunResult", "sweagent.types.AgentRunResult"] where sweagent.types part is the path to the component and AgentRunResult is the name of the component
9
+
component_ids: The ids of the components to read, e.g. ["sweagent/types.py::AgentRunResult", "auth/middleware.py::verify_token"] where the part before :: is the file path and the part after :: is the component name
0 commit comments