chore(prompts): Rename Prompt blocks to Dynamic prompts

This commit is contained in:
Richard Palethorpe
2025-03-31 15:33:08 +01:00
parent 045fb1f8d6
commit 4c40e47e8d
8 changed files with 72 additions and 28 deletions

View File

@@ -39,7 +39,7 @@ type options struct {
kbResults int
ragdb RAGDB
prompts []PromptBlock
prompts []DynamicPrompt
systemPrompt string
@@ -212,7 +212,7 @@ func WithCharacterFile(path string) Option {
// WithPrompts adds additional block prompts to the agent
// to be rendered internally in the conversation
// when processing the conversation to the LLM
func WithPrompts(prompts ...PromptBlock) Option {
func WithPrompts(prompts ...DynamicPrompt) Option {
return func(o *options) error {
o.prompts = prompts
return nil

View File

@@ -1,6 +1,6 @@
package agent
type PromptBlock interface {
type DynamicPrompt interface {
Render(a *Agent) (string, error)
Role() string
}