Documentation
¶
Overview ¶
Code generated by ormc; DO NOT EDIT. NOTE: Schema() and Values() must always be in the same field order. String PK: set via github.com/tinywasm/unixid before calling db.Create().
Index ¶
- Constants
- func ReadAllcat(qb *orm.QB) ([]*cat, error)
- func ReadAllparamModel(qb *orm.QB) ([]*paramModel, error)
- func ReadAllskillModel(qb *orm.QB) ([]*skillModel, error)
- func ReadOnecat(qb *orm.QB, model *cat) (*cat, error)
- func ReadOneparamModel(qb *orm.QB, model *paramModel) (*paramModel, error)
- func ReadOneskillModel(qb *orm.QB, model *skillModel) (*skillModel, error)
- type Parameter
- type Skill
- type Store
Constants ¶
View Source
const LLMInstruction = "Available: %s. Query catalog table for args schema. Example: SELECT args FROM catalog WHERE name='read';"
LLMInstruction is the prompt template for LLMs.
Variables ¶
This section is empty.
Functions ¶
func ReadAllcat ¶ added in v0.0.2
func ReadAllparamModel ¶ added in v0.0.2
func ReadAllskillModel ¶ added in v0.0.2
func ReadOnecat ¶ added in v0.0.2
func ReadOneparamModel ¶ added in v0.0.2
func ReadOneskillModel ¶ added in v0.0.2
Types ¶
type Parameter ¶
type Parameter struct {
Name string `json:"n"` // Name
Type string `json:"t"` // Type
Info string `json:"d"` // Description/Info
Required bool `json:"r"` // Required
}
Parameter defines an argument for a Skill. JSON tags match the compact format used in the 'catalog' view to save tokens.
type Skill ¶
type Skill struct {
Name string `json:"name"` // Matches 'name' in catalog
Category string `json:"category"` // Matches 'cat' in catalog (mapped)
Info string `json:"info"` // Matches 'info' in catalog
Parameters []Parameter `json:"parameters"` // Matches 'args' in catalog (mapped)
}
Skill represents a tool available to the LLM.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides access to the skill database.
func (*Store) GetIndex ¶
GetIndex returns a compact string representation of available skills. Format: cat1(skill1,skill2), cat2(skill3)
Click to show internal directories.
Click to hide internal directories.