Dspy.Signature (dspy v0.1.0)
View SourceDefine typed input/output interfaces for language model calls.
Signatures specify the expected inputs and outputs for DSPy modules, including field types, descriptions, and validation rules.
Summary
Functions
Create a new signature.
Parse outputs according to the signature.
Generate a prompt template from the signature.
Validate inputs against the signature.