Refactor/react agent (#3355)

This commit is contained in:
Yeuoly 2024-04-11 18:34:17 +08:00 • committed by GitHub
commit cea107b165
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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:"""