contextadapter

package
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

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) ID

func (*ContextDecoder) Recognize

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL