Package dev.enola.ai.dotprompt
Class DotPrompt
java.lang.Object
dev.enola.common.io.object.WithSchema
dev.enola.ai.dotprompt.DotPrompt
- Direct Known Subclasses:
AgentsModel.Agent
Dot Prompt struct, see Spec and the (TypeScript) Reference
Implementation.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription@Nullable URIThe URL of where this DotPrompt originated.@Nullable DotPrompt.InputDefines the (schema of the) input variables the prompt.@Nullable StringThe 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.@Nullable StringThe name of the prompt.@Nullable DotPrompt.OutputDefines the expected model output format.@Nullable StringTemplate of Prompt, as text.@Nullable TemplateTemplate of Prompt, as Template (from parsedprompt).Names of registered tools to allow use of in this prompt.Fields inherited from class dev.enola.common.io.object.WithSchema
schema -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
The URL of where this DotPrompt originated. -
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.mdhas an inferred name ofexample). -
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
Names of registered tools to allow use of in this prompt. -
input
Defines the (schema of the) input variables the prompt. -
output
Defines the expected model output format. -
prompt
Template of Prompt, as text.This is typically in the body (after the YAML frontmatter) of a .prompt file.
-
template
Template of Prompt, as Template (from parsedprompt).
-
-
Constructor Details
-
DotPrompt
public DotPrompt()
-