MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Overload

Struct Overload

common/env/env.go:407–413  ·  view source on GitHub ↗

Overload represents the serializable format of a function overload.

Source from the content-addressed store, hash-verified

405
406// Overload represents the serializable format of a function overload.
407type Overload struct {
408 ID string `yaml:"id" json:"id" jsonschema_description:"Overload ID formatted as function_name_type1_..._typeN or target_type_function_name_type1_..._typeN"`
409 Examples []string `yaml:"examples,omitempty" json:"examples,omitempty"`
410 Target *TypeDesc `yaml:"target,omitempty" json:"target,omitempty" jsonschema_description:"Receiver type specifier for member functions"`
411 Args []*TypeDesc `yaml:"args,omitempty" json:"args,omitempty"`
412 Return *TypeDesc `yaml:"return,omitempty" json:"return,omitempty"`
413}
414
415// Validate validates the overload configuration is well-formed.
416func (od *Overload) Validate() error {

Callers 1

unmarshalMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected