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

Method PluginValue

relay/plugin_protocol.go:103–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (s ProtocolState) PluginValue() (any, error) {
104 if !s.Present || s.Null {
105 return nil, nil
106 }
107 var value any
108 if err := common.Unmarshal(s.Value, &value); err != nil {
109 return nil, err
110 }
111 return value, nil
112}
113
114type ProtocolSemanticEvent struct {
115 Type string

Calls 1

UnmarshalFunction · 0.92