template

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "template"

Variables

This section is empty.

Functions

func RenderTemplateDocument

func RenderTemplateDocument(tpl *tpldef.Template) string

func WithAgentFinder

func WithAgentFinder(f agentmdl.Finder) func(*Service)

func WithConversationClient

func WithConversationClient(c apiconv.Client) func(*Service)

Types

type GetInput

type GetInput struct {
	Name            string `json:"name"`
	IncludeDocument *bool  `json:"includeDocument,omitempty"`
}

type GetOutput

type GetOutput struct {
	Name             string                   `json:"name,omitempty"`
	Format           string                   `json:"format,omitempty"`
	Description      string                   `json:"description,omitempty"`
	Instructions     string                   `json:"instructions,omitempty"`
	Fences           []tpldef.Fence           `json:"fences,omitempty"`
	Schema           map[string]interface{}   `json:"schema,omitempty"`
	Examples         []tpldef.TemplateExample `json:"examples,omitempty"`
	IncludedDocument bool                     `json:"includedDocument,omitempty"`
}

type ListInput

type ListInput struct{}

type ListItem

type ListItem struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	Format      string `json:"format,omitempty"`
}

type ListOutput

type ListOutput struct {
	Items []ListItem `json:"items"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(templates *tplrepo.Repository, bundles *tplbundlerepo.Repository, opts ...func(*Service)) *Service

func (*Service) Method

func (s *Service) Method(name string) (svc.Executable, error)

func (*Service) Methods

func (s *Service) Methods() svc.Signatures

func (*Service) Name

func (s *Service) Name() string

Jump to

Keyboard shortcuts

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