nemo_relay.integrations.langchain.callbacks
nemo_relay.integrations.langchain.callbacks
Generated from python/nemo_relay/integrations/langchain/callbacks.py.
Module nemo_relay.integrations.langchain.callbacks.
LangChain callback handler that maps run hierarchy to NeMo Relay scopes.
Classes
NemoRelayCallbackHandler(BaseCallbackHandler)
Bridge LangChain chain run IDs to NeMo Relay Agent scopes.
Methods
NemoRelayCallbackHandler
Create an instance.
on_chain_start
Push a NeMo Relay Agent scope for a LangChain chain run.
on_chain_end
Pop the NeMo Relay scope associated with a LangChain chain run.
on_chain_error
Pop the NeMo Relay scope associated with a failed LangChain chain run.