systemPrompt property

String systemPrompt
final

System prompt is the instruction provided to agent and used to set the context and guide the agent on how to respond to the user request.

Example:

final chatMode = ChatMode(
  systemPrompt: '''
You are an Flutter expert who answers user's queries related
to the framework based on the references shared.

Note:
1. If the references don't address the question, state that "I couldn't fetch your answer from the doc sources, but I'll try to answer from my own knowledge".
2. Be truthful, complete and detailed with your responses and include code snippets wherever required
''',
);

Implementation

final String systemPrompt;