Class DotPrompt

Direct Known Subclasses:
AgentsModel.Agent

public class DotPrompt extends WithSchema
Dot Prompt struct, see Spec and the (TypeScript) Reference Implementation.
  • Field Details

    • id

      public @Nullable URI id
      The URL of where this DotPrompt originated.
    • name

      public @Nullable String name
      The name of the prompt. If not specified, it will be inferred from the filename in the URL of the loaded prompt (e.g. http://example.org/stuff/example.prompt.md has an inferred name of example).
    • model

      public @Nullable String model
      The name of the model to use for this prompt, based on the Enola.dev AI URI specification; so e.g., google://?model=gemini-2.5-flash. May be omitted, in which case a default model will be used.
    • tools

      public final Set<String> tools
      Names of registered tools to allow use of in this prompt.
    • input

      public @Nullable DotPrompt.Input input
      Defines the (schema of the) input variables the prompt.
    • output

      public @Nullable DotPrompt.Output output
      Defines the expected model output format.
    • prompt

      public @Nullable String prompt
      Template of Prompt, as text.

      This is typically in the body (after the YAML frontmatter) of a .prompt file.

    • template

      public @Nullable Template template
      Template of Prompt, as Template (from parsed prompt).
  • Constructor Details