MCPcopy Create free account
hub / github.com/modelscope/modelscope / get_output_schema

Function get_output_schema

modelscope/utils/input_output.py:169–183  ·  view source on GitHub ↗

Get task output schema. Args: task_name (str): The task name.

(task_name: str)

Source from the content-addressed store, hash-verified

167
168
169def get_output_schema(task_name: str):
170 """Get task output schema.
171
172 Args:
173 task_name (str): The task name.
174 """
175 task_outputs = TASK_OUTPUTS[task_name]
176 output_schema = {'type': 'object', 'properties': {}}
177 if not isinstance(task_outputs, list):
178 raise ValueError('TASK_OUTPUTS for %s is not list.' % task_name)
179 else:
180 for output_key in task_outputs:
181 output_schema['properties'][output_key] = OutputTypeSchema[
182 output_key]
183 return output_schema
184
185
186def get_input_info(task_name: str):

Callers 2

_analyzeMethod · 0.85
input_output.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…