RolePlayingBuilder
Helpers & Utilities · AiDotNet.PromptEngineering.Templates
Builder for constructing role-playing templates fluently.
Constructors
| Constructor | Summary |
|---|---|
RolePlayingBuilder() |
Methods
| Method | Summary |
|---|---|
RolePlayingBuilder AsRole(string role) |
Sets the role or persona. |
RolePlayingBuilder WithAttribute(string name, string value) |
Adds a custom attribute to the persona. |
RolePlayingBuilder WithConstraints(string constraints) |
Sets constraints for the role. |
RolePlayingBuilder WithExpertise(string expertise) |
Adds multiple areas of expertise. |
RolePlayingBuilder WithExpertise(string[] expertise) |
Adds multiple areas of expertise. |
RolePlayingBuilder WithPersonality(string personality) |
Sets the personality and communication style. |
RolePlayingBuilder WithTask(string task) |
Sets the task to perform. |
RolePlayingTemplate Build() |
Builds the role-playing template. |