agent_prompt_suffix
Intervene while the agent manager formats the prompt suffix with the memories and the conversation history.
Allows editing the suffix of the Main Prompt that the Cat feeds to the Agent.
The suffix is concatenated to agent_prompt_prefix
when RAG context is used.
đ Arguments
Name | Type | Description |
---|---|---|
suffix |
str |
The ending part of the prompt containing the memories and the chat history. |
cat |
StrayCat | Cheshire Cat instance, allows you to use the framework components. |
The default value of suffix
is:
The suffix
can contain few placeholders:
Name | Description |
---|---|
{episodic_memory} |
Provides memories retrieved from episodic memory (past conversations) |
{declarative_memory} |
Provides memories retrieved from declarative memory (uploaded documents) |
{chat_history} |
Provides the Agent the recent conversation history |
{input} |
Provides the last user's input |
{agent_scratchpad} |
Is where the Agent can concatenate tools use and multiple calls to the LLM. |
âŠī¸ Return
Type: str
The suffix string to be concatenated to the Main Prompt (prefix).