MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / ToolModelSerializer

Class ToolModelSerializer

apps/tools/serializers/tool.py:171–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169
170
171class ToolModelSerializer(serializers.ModelSerializer):
172 class Meta:
173 model = Tool
174 fields = [
175 "id",
176 "name",
177 "icon",
178 "desc",
179 "code",
180 "input_field_list",
181 "init_field_list",
182 "init_params",
183 "scope",
184 "is_active",
185 "user_id",
186 "template_id",
187 "workspace_id",
188 "folder_id",
189 "tool_type",
190 "label",
191 "version",
192 "create_time",
193 "update_time",
194 ]
195
196
197class ToolRecordModelSerializer(serializers.ModelSerializer):

Callers 8

get_dataMethod · 0.90
get_toolsMethod · 0.85
oneMethod · 0.85
get_internal_toolsMethod · 0.85
addMethod · 0.85
addMethod · 0.85
update_toolMethod · 0.85
page_toolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected