Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssembler ¶
func NewAssembler(_ AssemblerConfig, deps AssemblerDeps) (agentkit.PromptAssembler, error)
NewAssembler registers prompt/assembler/default: Assemble SectionProvider contributions into one system prompt.
Best practices:
- Sections are emitted in dep order, so put stable instructions before volatile context.
Types ¶
type Assembler ¶
type Assembler struct {
// contains filtered or unexported fields
}
func (*Assembler) Assemble ¶
func (a *Assembler) Assemble(ctx context.Context, req agentkit.PromptRequest) ([]agentkit.ModelMessage, error)
type AssemblerConfig ¶
type AssemblerConfig struct{}
type AssemblerDeps ¶
type AssemblerDeps struct {
Sections []agentkit.SectionProvider `json:"sections,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.