A static system prompt string to associate with the class.
A class decorator function.
Method-level systemPrompt
decorator.
Use this decorator on methods to dynamically provide a system prompt. The method must return a string or a Promise resolving to a string, which will be added to the list of system prompts for the class.
Usage:
class ExampleClass {
@systemPrompt
async dynamicPromptMethod(): Promise<string> {
return "Dynamic system prompt from the method.";
}
}
A method decorator function.
Class-level
systemPrompt
decorator.Use this decorator to add a static system prompt to the entire class. The provided system prompt will be prepended to the list of system prompts for the class.
Usage: