Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArtifactSupport ¶
func ArtifactSupport() engine.ArtifactSupport
func DiscoveryProfile ¶
func DiscoveryProfile() engine.DiscoveryProfile
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func NewAdapter( query *engine.QueryService, ) (*Adapter, error)
func (*Adapter) Compose ¶
func (p *Adapter) Compose( ctx context.Context, rootID artifactstore.RootID, recordIDs []artifactstore.RecordID, ) (ContextLoadPlan, error)
func (*Adapter) List ¶
func (p *Adapter) List( ctx context.Context, rootID artifactstore.RootID, ) ([]ContextContribution, error)
type ContextContribution ¶
type ContextContribution struct {
RecordID artifactstore.RecordID `json:"recordID"`
DefinitionDigest artifactstore.Digest `json:"definitionDigest"`
SourceID artifactstore.SourceID `json:"sourceID"`
Locator artifactstore.Locator `json:"locator"`
Priority int `json:"priority"`
Name string `json:"name"`
Role string `json:"role"`
MediaType string `json:"mediaType"`
Content string `json:"content"`
}
type ContextDecoder ¶
type ContextDecoder struct{}
func NewContextDecoder ¶
func NewContextDecoder() *ContextDecoder
func (*ContextDecoder) Decode ¶
func (*ContextDecoder) Decode( _ context.Context, candidate discovery.Candidate, ) ([]discovery.Decoded, []artifactstore.Diagnostic)
func (*ContextDecoder) ID ¶
func (*ContextDecoder) ID() artifactstore.DecoderID
func (*ContextDecoder) Recognize ¶
func (*ContextDecoder) Recognize( _ context.Context, candidate discovery.Candidate, ) discovery.Recognition
type ContextLoadPlan ¶
type ContextLoadPlan struct {
RootID artifactstore.RootID `json:"rootID"`
CatalogRevision uint64 `json:"catalogRevision"`
Contributions []ContextContribution `json:"contributions"`
Prompt string `json:"prompt"`
Diagnostics []artifactstore.Diagnostic `json:"diagnostics,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.