Documentation
¶
Index ¶
- Constants
- func ConvertAnswerToString(value any) (string, error)
- func ExecutePrompt(ctx context.Context, content string, parameters []string, ...) (string, error)
- func ExtractAndValidateJSON(responseString string, chainConfig *gochains.BaseChain) (map[string]any, error)
- func GenerateStructuredAnswer(ctx context.Context, chainConfig *gochains.BaseChain, params map[string]any, ...) (map[string]any, error)
- func GenerateTextAnswer(ctx context.Context, chainConfig *gochains.BaseChain, params map[string]any, ...) (string, error)
- type ExecutePromptParams
- type PromptExecutionService
- type ScanState
Constants ¶
View Source
const ERR_MODEL_DOES_NOT_SUPPORT_JSON_OBJECT = "model does not support json_object"
Variables ¶
This section is empty.
Functions ¶
func ConvertAnswerToString ¶
ConvertAnswerToString converts any value to string, handling both string and JSON marshaling
func ExecutePrompt ¶
func ExtractAndValidateJSON ¶
Types ¶
type ExecutePromptParams ¶
type PromptExecutionService ¶
type PromptExecutionService struct {
// contains filtered or unexported fields
}
func NewPromptExecutionService ¶
func NewPromptExecutionService() *PromptExecutionService
Click to show internal directories.
Click to hide internal directories.