prompt

package
v0.7.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultPromptTemplate

func GetDefaultPromptTemplate(model string) string

GetDefaultPromptTemplate 获取内嵌的默认提示词模板

func GetPromptPath

func GetPromptPath(model string, global bool) (string, error)

GetPromptPath 获取提示词文件路径 global: true表示全局配置,false表示项目配置

func GetPromptTemplate

func GetPromptTemplate(model string) string

GetPromptTemplate 获取当前生效的提示词模板 优先级:项目配置 > 全局配置 > 内嵌默认模板

func GetSystemPrompt

func GetSystemPrompt(ctx context.Context) string

GetSystemPrompt 获取增强的系统提示词

Types

This section is empty.

Source Files

  • doc.go
  • prompt.go

Jump to

Keyboard shortcuts

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