Convenience function that creates a PredictModule with chain-of-thought
reasoning enabled. This is equivalent to calling with_reasoning() on
a signature and then creating a module from it.
Arguments
- x
A signature object created by
signature(), or string notation.- prefix
Character. The prefix for the reasoning field.
- chat
Optional ellmer Chat object.
- template
Optional glue template.
- demos
Optional demonstration examples.
- config
Optional prediction configuration.
- ...
Must be empty.