Skip to content

Conversation

@lorenzejay
Copy link
Collaborator

  • Added support for before and after LLM call hooks to allow modification of messages and responses during LLM interactions.
  • Introduced LLMCallHookContext to provide hooks with access to the executor state, enabling in-place modifications of messages.
  • Updated get_llm_response function to utilize the new hooks, ensuring that modifications persist across iterations.
  • Enhanced tests to verify the functionality of the hooks and their error handling capabilities, ensuring robust execution flow.

- Added support for before and after LLM call hooks to allow modification of messages and responses during LLM interactions.
- Introduced LLMCallHookContext to provide hooks with access to the executor state, enabling in-place modifications of messages.
- Updated get_llm_response function to utilize the new hooks, ensuring that modifications persist across iterations.
- Enhanced tests to verify the functionality of the hooks and their error handling capabilities, ensuring robust execution flow.
Copy link
Contributor

@lucasgomide lucasgomide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@lorenzejay lorenzejay merged commit c205d2e into main Nov 12, 2025
42 checks passed
@lorenzejay lorenzejay deleted the lorenze/llm-call-before-after-hooks branch November 12, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants