Repository navigation
docs(py): add contributing-to-genkit-python skill - #6824
Closed
huangjeff5 wants to merge 22 commits into
Closed
huangjeff5 wants to merge 22 commits into
huangjeff5 wants to merge 22 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds a comprehensive contribution guide (SKILL.md) for Genkit Python, detailing API design principles, architecture, coding conventions, and PR guidelines. The review feedback suggests two improvements: simplifying ToolContext[ChunkT] to ToolContext because tools do not stream chunks, and using the full repository path for the generated typing file to maintain consistency.
Contributor
Author
|
Closing in genkit-ai/genkit; contributing skill migrated directly to genkit-ai/genkit-python under skills/contributing-to-genkit-python. |
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.
Adds
py/skills/contributing-to-genkit-python/, a skill for anyone (or any agent) changing the Genkit Python public API. It covers:aias the entry point, actions, refs and typed config, raise-before-start and return-after, streams,context=__init__.pyis the only public module, every exported name needs a reason, and config is flat at the surface and built into the provider's nested shape inside the actionBaseModel,GenkitConfig,GenkitModel), a frozen dataclass, or a plain classif TYPE_CHECKING:imports, and dependencies that run one way with no cyclespy/scripts/schema_to_typing.pygenkit startsafely when other agents share the machineChanges
py/skills/:SKILL.mdholds the rules every surface change needs;references/plugins.md,references/wire-types.md,references/pr-descriptions.mdandreferences/dev-ui-alongside-other-agents.mdload only when that work applies. No SDK code changes.Breaking changes
None.