Repository navigation
fix: enable Eredu function calls and tool-result followups - #1
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Eredu clients can request checkpoint-native function calls, receive OpenAI JSON/SSE tool calls, and replay tool results for a follow-up answer. Unsupported templates fail closed; the plugin never executes tools.
Supports auto/none/required tool choice, opt-in parallel policy, and enable_thinking. Named-function tool-choice objects remain unsupported. Fixes an immediate-followup admission race: completion is sent only after device settlement and admission release.
Example
{"model":"eredu-local","messages":[{"role":"user","content":"Weather in Bogotá?"}],"tools":[{"type":"function","function":{"name":"weather","parameters":{"type":"object","properties":{"city":{"type":"string"}},"required":["city"]}}}],"tool_choice":"required","enable_thinking":false}Replies include
message.tool_callswith stable IDs and JSON-string arguments, andfinish_reason: "tool_calls"; streaming emits indexed tool-call deltas. Replay the assistant message and matching tool_call_id result.Validation
Originating Buzz channel: 88c67ad6-ea81-46d7-aa24-387b6500459b; thread 9c6ac22a1f1a1d7dff1b7570a679e4b5061fe6847d81868c330d1a5c6d804b2c.