dspy.Predict
dspy.Predict(signature, callbacks=None, **config)
Bases: Module
, Parameter
Source code in dspy/predict/predict.py
Functions
__call__(**kwargs)
dump_state()
Source code in dspy/predict/predict.py
forward(**kwargs)
Source code in dspy/predict/predict.py
load_state(state)
Load the saved state of a Predict
object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state
|
dict
|
The saved state of a |
required |
Returns:
Name | Type | Description |
---|---|---|
self |
Returns self to allow method chaining |