has_reasoning() checks whether a signature's output has a field named
reasoning_field, as added by with_reasoning().
Arguments
- sig
A signature from
signature().- reasoning_field
Name of the field to look for.
See also
Other signatures:
input(),
signature(),
with_instructions(),
with_reasoning(),
without_reasoning()
Examples
sig <- signature("question -> answer")
has_reasoning(sig)
#> [1] FALSE
has_reasoning(with_reasoning(sig))
#> [1] TRUE