Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Dec 11, 2025

Adds codegen support for the examples parameter in the @tool decorator, complementing PR #3350 which adds runtime support. When a CODE_EXECUTION function has examples defined in definition.parameters.examples, the codegen generates the appropriate tool(inputs={...}, examples=[...]) wrapper.


Review & Testing Checklist for Human

  • Verify the backend/frontend sends examples in definition.parameters.examples (JSON Schema examples keyword) - the codegen reads from this path
  • Test end-to-end by pulling a workflow that has a tool with both inputs and examples defined and verify the generated code is valid Python
  • Confirm the generated tool(inputs={...}, examples=[...]) matches what PR Support examples in tool decorator #3350's runtime decorator expects

Notes

This PR only handles examples for CODE_EXECUTION function types. Other function types (INLINE_WORKFLOW, WORKFLOW_DEPLOYMENT, etc.) do not support examples.

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration bot force-pushed the devin/1765477135-support-input-examples-codegen branch from 061d138 to 1c60122 Compare December 11, 2025 22:35
@devin-ai-integration devin-ai-integration bot changed the title Support input_examples codegen for tool decorator Support examples codegen for tool decorator Dec 11, 2025
@vincent0426 vincent0426 marked this pull request as ready for review December 11, 2025 22:42
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.

2 participants