Skip to content

feat(integrations): async Openlayer callback handler#505

Merged
whoseoyster merged 1 commit into
mainfrom
cid/async-callback-handler
Aug 15, 2025
Merged

feat(integrations): async Openlayer callback handler#505
whoseoyster merged 1 commit into
mainfrom
cid/async-callback-handler

Conversation

@gustavocidornelas
Copy link
Copy Markdown
Contributor

Pull Request

Summary

Implements the AsyncCallbackHandler interface from LangChain, thus enabling tracing async workflows from LangChain/LangGraph.

Changes

  • Moved shared logic from the sync and async handlers to the OpenlayerHandlerMixin class.
  • Both OpenlayerHandler and AsyncOpenlayerHandler inherit from the mixin.
  • AsyncOpenlayerHandler overwrites the create_step/end_step logic to avoid using context variables (as there are issues in async environments). Otherwise, it uses the methods from the mixin as much as possible.

Context

POC request.

Testing

  • Manual testing

@whoseoyster whoseoyster merged commit f1b9761 into main Aug 15, 2025
5 checks passed
@whoseoyster whoseoyster deleted the cid/async-callback-handler branch August 15, 2025 12:35
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.

2 participants