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)
| 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. |
| 85 | func 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 | // |