-
-
Notifications
You must be signed in to change notification settings - Fork 189
86: Add default limit for tools completions #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rhys117
wants to merge
31
commits into
crmne:main
Choose a base branch
from
rhys117:max-tool-calls
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
e7f7a0f
feat: add limit to tools calls
rhys117 47c8742
docs: add docs for removing limit
rhys117 190e9de
docs: Fix docs
rhys117 fe837de
docs: improve doc - more accurate & organisation
rhys117 0f7ce26
bug: reset tools calls for each new 'ask' call
rhys117 6b807cf
bug: move error so tool result is still added
rhys117 df12db9
merge: main
rhys117 3af500d
chore: rework approach to rely on completions instead of tool calls
rhys117 39894a8
bug: fix attr_reader declaration to match number_of_tool_completions
rhys117 4718e2d
test: add better example
rhys117 7885c4b
docs: correct docs after changing naming/strategy
rhys117 585af65
merge: Merge branch 'main' into max-tool-calls
rhys117 df26988
docs: add default to docs
rhys117 19c0cd1
chore: rename error to match new naming
rhys117 3ad25f4
Merge branch 'main' into max-tool-calls
rhys117 d94d6dd
chore: reorder configuration accessor and add comment
rhys117 71dba53
style: cops - disable / fix
rhys117 6455f08
test: add spec for configured limit
rhys117 5a44bff
docs: adjust tools docs
rhys117 17b55cc
merge: main
rhys117 d09ce92
bug: ensure with_max_tool_completions available through acts_as helpers
rhys117 69af539
Merge branch 'main' into max-tool-calls
rhys117 018cc3b
deps: remove faker gem
rhys117 4cb6765
chore: use existing context instead of with_max_tool_completions
rhys117 6cb8ec3
test: adjust spec for context use
rhys117 4cdb924
chore: rename to max_tool_llm_calls
rhys117 f8fc8a5
docs: minor doc correction after rename
rhys117 731fcc6
chore: rename error class
rhys117 092ff2c
test: ensure spec cases for openrouter, openai, anthropic passing
rhys117 a0a1fa8
bug: fix +1 issue for llm tool lomts
rhys117 397438e
docs: improve tool docs for max tool llm calls
rhys117 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrapped this in a conditional to ensure that the config was present on the context. This more closely aligns with the assignment in the initialiser (
@config = context&.config || RubyLLM.config
)|If I've made a mistake here, please let me know.