Skip to content

support for custom input types in DSPy signatures #8210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

arnavsinghvi11
Copy link
Collaborator

@arnavsinghvi11 arnavsinghvi11 commented May 13, 2025

adds support for defining custom input types in signatures with unified formatting of input messages in BaseAdapter

also compatible with existing types (dspy.Image, dspy.History), refactors some hard-coded functions of dspy.Image to use the CustomType-BaseAdapter integration

@arnavsinghvi11 arnavsinghvi11 requested a review from okhat May 13, 2025 04:43
@arnavsinghvi11 arnavsinghvi11 changed the title support for custom types in DSPy signatures support for custom input types in DSPy signatures May 13, 2025
@chenmoneygithub
Copy link
Collaborator

Per our discussions offline, moving away from special case handling for DSPy type is agreed on, but we need to simplify this implementation for scalability. I will push a few commits this week.

@arnavsinghvi11
Copy link
Collaborator Author

Closed via #8217

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