MCPcopy Create free account
hub / github.com/QuantumNous/new-api / taskPluginProtocolJSONValue

Function taskPluginProtocolJSONValue

controller/plugin_protocol.go:1142–1152  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

1140}
1141
1142func taskPluginProtocolJSONValue(value any) (any, error) {
1143 encoded, err := common.Marshal(value)
1144 if err != nil {
1145 return nil, err
1146 }
1147 var decoded any
1148 if err = common.Unmarshal(encoded, &decoded); err != nil {
1149 return nil, err
1150 }
1151 return decoded, nil
1152}
1153
1154func taskPluginProtocolRendererContext(
1155 request pluginruntime.ProtocolRequestContext,

Calls 2

MarshalMethod · 0.80
UnmarshalMethod · 0.80

Tested by

no test coverage detected