A prompt definition advertised via prompts/list, plus helpers for building the
PromptMessage list returned by prompts/get.
Mirrors the Prompt, PromptArgument and PromptMessage types from the schema.
Summary
Functions
Builds a PromptMessage with the assistant role.
Builds a PromptMessage with an explicit role ("user" or "assistant").
Builds a prompt from a keyword list or map of attributes.
Serializes the prompt to its JSON-RPC wire shape.
Builds a PromptMessage with the user role.
Types
Functions
@spec assistant_message(Urchin.Content.block()) :: map()
Builds a PromptMessage with the assistant role.
@spec message(String.t(), Urchin.Content.block()) :: map()
Builds a PromptMessage with an explicit role ("user" or "assistant").
Builds a prompt from a keyword list or map of attributes.
Serializes the prompt to its JSON-RPC wire shape.
@spec user_message(Urchin.Content.block()) :: map()
Builds a PromptMessage with the user role.