google / langfun

OO for LLMs
Apache License 2.0
122 stars 18 forks source link

Introducing `response_postprocess` for `lf.query`. #166

Closed copybara-service[bot] closed 5 months ago

copybara-service[bot] commented 5 months ago

Introducing response_postprocess for lf.query.

This allows users to intercept and make modifications to LLM response before parsing it into Python. Because of this, we remove the hard-coded logic to remove docstr from generated code.