Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompt ¶
type Prompt struct {
// Human readable name of the prompt, used for logging
Name string
// Prompt template, using Golang template syntax, e.g. "What is the capital of {{.Country}}?"
Prompt string
// Optional field to specify which LLM to use, e.g. "base", "micro", "small", "medium", "large", "xlarge"
RunsOn string
// Optional field to specify how many times to retry the prompt in case of failure.
// Default is 3
Retry int
// Optional debugging mode
Debug bool
// Input/ Output schema
Schema Schema
// List of servers required for the task
Servers []Server
}
Prompt is a markdown document with YAMLs based metadata, it containts: * prompt itself as a temaplate with variables * expected input/output format (json schema) * list of servers
type Schema ¶
type Schema struct {
Format string
Input *jsonschema.Schema
Reply *jsonschema.Schema
}
Input and output schema, using JSON Schema format, e.g. {"type": "object", "properties": {"Country": {"type": "string"}}}
Click to show internal directories.
Click to hide internal directories.