Skip to content

chore(py): Bump Python SDK version to 0.6.0#5356

Merged
huangjeff5 merged 1 commit into
mainfrom
release/v0.6.0
May 21, 2026
Merged

chore(py): Bump Python SDK version to 0.6.0#5356
huangjeff5 merged 1 commit into
mainfrom
release/v0.6.0

Conversation

@huangjeff5
Copy link
Copy Markdown
Contributor

@huangjeff5 huangjeff5 commented May 19, 2026

Python SDK v0.6.0 Release Notes

This release bumps the Genkit Python SDK to version 0.6.0.

New Features

Existing API Changes

  • Breaking change: When executing prompts, options have been flattened into standard Python keyword arguments.
# OLD (v0.5.2):
response = await my_prompt(input_data, {'config': {'temperature': 0.7}})

# NEW (v0.6.0):
response = await my_prompt(input_data, config={'temperature': 0.7})

In your Genkit code, if you invoke prompts with custom configuration defined in code, you will need to migrate your usage code such that config is named as an explicit kwarg.

  • Non-breaking change: Decorator @ai.tool returns a Tool wrapper instead of the raw function.

In v0.5.2, decorating a function with @ai.tool registered the action behind the scenes, but returned the original raw Python function. In v0.6.0, decorating a function with @ai.tool now returns a wrapper instance of the Tool class. This change shouldn't require any migration on your end for typical Genkit usage.

Bug Fixes & Refactoring

@github-actions github-actions Bot added docs Improvements or additions to documentation python Python config labels May 19, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the version of the Genkit Python package and its associated plugins from 0.5.2 to 0.6.0. It also introduces a new sample application, flow-sample1, which demonstrates core framework features such as traced steps, streaming, and error handling. Feedback was provided regarding a redundant string conversion in the new sample code.

Comment thread py/samples/flow-sample1/src/main.py Outdated
@huangjeff5 huangjeff5 changed the title Python SDK 0.6.0 release(py): Python SDK 0.6.0 May 19, 2026
@huangjeff5 huangjeff5 changed the title release(py): Python SDK 0.6.0 chore(py): Python SDK 0.6.0 release May 19, 2026
@huangjeff5 huangjeff5 changed the title chore(py): Python SDK 0.6.0 release chore(py): Bump Python SDK version to 0.6.0 May 19, 2026
@huangjeff5 huangjeff5 merged commit 58e9722 into main May 21, 2026
24 of 32 checks passed
@huangjeff5 huangjeff5 deleted the release/v0.6.0 branch May 21, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config docs Improvements or additions to documentation python Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants