[Python] Add warning when toolChoice not supported in ModelInfo
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start in py/packages/genkit/src/genkit/blocks/generate.py at line 653 and inspect how toolChoice and ModelInfo are handled. Add an informative runtime warning when toolChoice is passed without model support, then run the relevant Python tests for generate.py and confirm the warning explains the unsupported configuration and next action.
Written by the indexing model from the issue text.
Description
Description
Should add a warning when toolChoice is used but not supported by the model.
Location
- File:
py/packages/genkit/src/genkit/blocks/generate.py - Line: 653
- Current code:
# TODO: add warning when toolChoice is not supported in ModelInfo
Acceptance Criteria
- Add runtime warning when toolChoice is passed but ModelInfo indicates no support
- Ensure warning is informative and actionable
- Dominant language
- TypeScript
- Stars
- 6.5k
- Forks
- 845
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 56
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from genkit-ai/genkit
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
python
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
python
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in genkit-ai/genkit
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100