Skip to content

Add GenerationOptions#9

Merged
mkery merged 1 commit intomainfrom
mkery/gen-options-issue3
Mar 8, 2026
Merged

Add GenerationOptions#9
mkery merged 1 commit intomainfrom
mkery/gen-options-issue3

Conversation

@mkery
Copy link
Copy Markdown
Contributor

@mkery mkery commented Mar 8, 2026

This PR addresses part of Issue #3 by adding in GenerationOptions to the Python bindings to match the equivalent in the Swift framework https://developer.apple.com/documentation/foundationmodels/generationoptions.

The original issue asked for two things:

  1. Tool calling support: we already support tool calling so there's no additional work to do at the moment
  2. Support generation limits like max-token: this is best served by porting the existing GenerationOptions Swift framework type into Python, since GenerationOptions contains a maximumResponseTokens option.

GenerationOptions

  • created new Python class for Generation Options

Resolves #3

@mkery mkery self-assigned this Mar 8, 2026
@mkery mkery merged commit 0f65c9b into main Mar 8, 2026
@mkery mkery deleted the mkery/gen-options-issue3 branch March 8, 2026 20:37
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.

Feature request: Tool calling support and generation limits in Python Foundation Models SDK

1 participant