Skip to content

Adding ID support for FinishedChatCompletionToolCall #253

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xuji-2025
Copy link

This PR adds ID field support to the FinishedChatCompletionToolCall struct, enabling it to capture and return the unique identifier for tool calls. This ensures tool calls can be accurately tracked and referenced in streaming responses.

Changes

Added ID field to FinishedChatCompletionToolCall struct
Refactored JustFinishedToolCall() method to properly retrieve and return tool call IDs
Updated test cases to validate ID field handling

Impact

This change allows API clients to access complete tool call metadata, particularly in streaming scenarios, enabling reliable tracking and management of tool call lifecycles.

@xuji-2025 xuji-2025 requested a review from a team as a code owner March 6, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant