Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
zhusg
transformers-new
Commits
e0d82534
Unverified
Commit
e0d82534
authored
11 months ago
by
Aymeric Roucher
Committed by
GitHub
11 months ago
Browse files
Options
Download
Patches
Plain Diff
Agents use grammar (#31735)
* Allow optional use of grammars to constrain generation
parent
c54a6f99
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docs/source/en/agents.md
+5
-3
docs/source/en/agents.md
src/transformers/agents/agents.py
+22
-4
src/transformers/agents/agents.py
src/transformers/agents/llm_engine.py
+24
-5
src/transformers/agents/llm_engine.py
src/transformers/agents/prompts.py
+6
-8
src/transformers/agents/prompts.py
tests/agents/test_agents.py
+4
-4
tests/agents/test_agents.py
with
61 additions
and
24 deletions
+61
-24
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment