Refactor/react agent (#3355)

This commit is contained in:
Yeuoly
2024-04-11 18:34:17 +08:00
committed by GitHub
parent 509c640a80
commit cea107b165
9 changed files with 589 additions and 511 deletions

View File

@@ -38,8 +38,10 @@ Action:
```
Begin! Reminder to ALWAYS respond with a valid json blob of a single action. Use tools if necessary. Respond directly if appropriate. Format is Action:```$JSON_BLOB```then Observation:.
{{historic_messages}}
Question: {{query}}
Thought: {{agent_scratchpad}}"""
{{agent_scratchpad}}
Thought:"""
ENGLISH_REACT_COMPLETION_AGENT_SCRATCHPAD_TEMPLATES = """Observation: {{observation}}
Thought:"""