MCPcopy Create free account
hub / github.com/cel-expr/cel-go / AuthoringPromptWithFieldPaths

Function AuthoringPromptWithFieldPaths

cel/prompt.go:85–92  ·  view source on GitHub ↗

AuthoringPromptWithFieldPaths creates a prompt template from a CEL environment for the purpose of AI-assisted authoring. Includes documentation for all of the reachable field paths in the environment.

(env *Env)

Source from the content-addressed store, hash-verified

83// AuthoringPromptWithFieldPaths creates a prompt template from a CEL environment for the purpose of AI-assisted authoring.
84// Includes documentation for all of the reachable field paths in the environment.
85func AuthoringPromptWithFieldPaths(env *Env) (*Prompt, error) {
86 p, err := AuthoringPrompt(env)
87 if err != nil {
88 return nil, err
89 }
90 p.fieldPaths = true
91 return p, nil
92}
93
94// Prompt represents the core components of an LLM prompt based on a CEL environment.
95//

Callers 1

Calls 1

AuthoringPromptFunction · 0.85

Tested by 1