LangChain Integration
from trusthub import TrustAgent
from trusthub.integrations.langchain import TrustHubCallbackHandler
agent = TrustAgent.create(org="acme", entity_type="agent", framework="langchain")
handler = TrustHubCallbackHandler(agent)
# Attach to any LangChain chain
chain.invoke({"input": "query"}, config={"callbacks": [handler]})
# All tool calls are signed and audit-logged