System prompt
Customize the system prompt to control agent behavior and capabilities
Last updated
Customize the system prompt to control agent behavior and capabilities
Last updated
You can customize the system prompt by extending the SystemPrompt
class. Internally, this adds extra instructions to the default system prompt (which is general and quite optimized at this point).
Create a custom system prompt by inheriting from the base class.
Copy
The important_rules()
are written in format like this. Keeping the format consistent helps with redundancy and readability.
Copy
Apply your custom system prompt when creating an agent:
Copy