Skip to content

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