langchain_community.callbacks.llmonitor_callback.identify¶

langchain_community.callbacks.llmonitor_callback.identify(user_id: str, user_props: Optional[Any] = None) UserContextManager[source]¶

Builds an LLMonitor UserContextManager

Parameters
  • user_id (-) – The user id.

  • user_props (-) – The user properties.

Returns

A context manager that sets the user context.

Return type

UserContextManager

Examples using identify¶