Documentation
¶
Index ¶
- Constants
- func BuildFeedRegistry(descriptors map[string]*ServiceDescriptor) (map[string]FeedSpec, error)
- func ResolveBuildContextDir(baseDir string, raw interface{}) (string, error)
- func ResolveBuildContextFile(baseDir string, buildRaw interface{}, containerPath string) (string, error)
- type AuthDescriptor
- type EndpointDescriptor
- type FeedDescriptor
- type FeedSpec
- type MemoryDescriptor
- type MemoryEndpoint
- type ServiceDescriptor
- func LoadFromBuildContext(baseDir string, buildRaw interface{}, descriptorPath string) (*ServiceDescriptor, string, error)
- func LoadFromFile(path string) (*ServiceDescriptor, error)
- func LoadFromImage(imageRef, descriptorPath string) (*ServiceDescriptor, error)
- func Parse(data []byte) (*ServiceDescriptor, error)
- type ToolDescriptor
- type ToolHTTP
- type ToolRegistry
- type ToolSpec
Constants ¶
View Source
const DefaultDescriptorFile = ".claw-describe.json"
Variables ¶
This section is empty.
Functions ¶
func BuildFeedRegistry ¶
func BuildFeedRegistry(descriptors map[string]*ServiceDescriptor) (map[string]FeedSpec, error)
func ResolveBuildContextDir ¶
Types ¶
type AuthDescriptor ¶
type EndpointDescriptor ¶
type FeedDescriptor ¶
type MemoryDescriptor ¶ added in v0.5.0
type MemoryDescriptor struct {
Recall *MemoryEndpoint `json:"recall,omitempty"`
Retain *MemoryEndpoint `json:"retain,omitempty"`
Forget *MemoryEndpoint `json:"forget,omitempty"`
}
type MemoryEndpoint ¶ added in v0.5.0
type MemoryEndpoint struct {
Path string `json:"path"`
}
type ServiceDescriptor ¶
type ServiceDescriptor struct {
Version int `json:"version"`
Description string `json:"description,omitempty"`
Feeds []FeedDescriptor `json:"feeds,omitempty"`
Tools []ToolDescriptor `json:"tools,omitempty"`
Memory *MemoryDescriptor `json:"memory,omitempty"`
Endpoints []EndpointDescriptor `json:"endpoints,omitempty"`
Auth *AuthDescriptor `json:"auth,omitempty"`
Skill string `json:"skill,omitempty"`
}
func LoadFromBuildContext ¶
func LoadFromBuildContext(baseDir string, buildRaw interface{}, descriptorPath string) (*ServiceDescriptor, string, error)
func LoadFromFile ¶
func LoadFromFile(path string) (*ServiceDescriptor, error)
func LoadFromImage ¶
func LoadFromImage(imageRef, descriptorPath string) (*ServiceDescriptor, error)
func Parse ¶
func Parse(data []byte) (*ServiceDescriptor, error)
func (*ServiceDescriptor) Validate ¶
func (d *ServiceDescriptor) Validate() error
type ToolDescriptor ¶ added in v0.5.0
type ToolRegistry ¶ added in v0.5.0
func BuildToolRegistry ¶ added in v0.5.0
func BuildToolRegistry(descriptors map[string]*ServiceDescriptor) (ToolRegistry, error)
Click to show internal directories.
Click to hide internal directories.