id
stringlengths
14
15
text
stringlengths
35
2.07k
embedding
sequence
source
stringlengths
61
154
e897d52ca95b-0
langchain.callbacks.infino_callback.import_infino¶ langchain.callbacks.infino_callback.import_infino() → Any[source]¶
[ 5317, 8995, 72134, 32057, 3394, 12802, 35997, 27143, 3394, 55609, 198, 5317, 8995, 72134, 32057, 3394, 12802, 35997, 27143, 3394, 368, 11651, 5884, 76747, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.infino_callback.import_infino.html
4f127c8bb6df-0
langchain.callbacks.utils.hash_string¶ langchain.callbacks.utils.hash_string(s: str) → str[source]¶ Hash a string using sha1. Parameters s (str) – The string to hash. Returns The hashed string. Return type (str)
[ 5317, 8995, 72134, 8576, 15452, 3991, 55609, 198, 5317, 8995, 72134, 8576, 15452, 3991, 1161, 25, 610, 8, 11651, 610, 76747, 60, 55609, 198, 6504, 264, 925, 1701, 16249, 16, 627, 9905, 198, 82, 320, 496, 8, 1389, 578, 925, 311, 5286, 627, 16851, 198, 791, 51776, 925, 627, 5715, 955, 198, 4293, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.utils.hash_string.html
2886936bc501-0
langchain.callbacks.tracers.langchain_v1.get_headers¶ langchain.callbacks.tracers.langchain_v1.get_headers() → Dict[str, Any][source]¶ Get the headers for the LangChain API.
[ 5317, 8995, 72134, 5543, 73797, 8178, 8995, 2325, 16, 673, 27817, 55609, 198, 5317, 8995, 72134, 5543, 73797, 8178, 8995, 2325, 16, 673, 27817, 368, 11651, 30226, 17752, 11, 5884, 1483, 2484, 60, 55609, 198, 1991, 279, 7247, 369, 279, 23272, 19368, 5446, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.langchain_v1.get_headers.html
fb6b3fd4e3fc-0
langchain.callbacks.wandb_callback.import_wandb¶ langchain.callbacks.wandb_callback.import_wandb() → Any[source]¶ Import the wandb python package and raise an error if it is not installed.
[ 5317, 8995, 72134, 1444, 438, 65, 12802, 35997, 1704, 438, 65, 55609, 198, 5317, 8995, 72134, 1444, 438, 65, 12802, 35997, 1704, 438, 65, 368, 11651, 5884, 76747, 60, 55609, 198, 11772, 279, 29810, 65, 10344, 6462, 323, 4933, 459, 1493, 422, 433, 374, 539, 10487, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.wandb_callback.import_wandb.html
82de0b73f7ef-0
langchain.callbacks.mlflow_callback.construct_html_from_prompt_and_generation¶ langchain.callbacks.mlflow_callback.construct_html_from_prompt_and_generation(prompt: str, generation: str) → Any[source]¶ Construct an html element from a prompt and a generation. Parameters prompt (str) – The prompt. generation (str) – The generation. Returns The html string. Return type (str)
[ 5317, 8995, 72134, 58509, 5072, 12802, 85354, 9759, 5791, 62521, 8543, 65291, 55609, 198, 5317, 8995, 72134, 58509, 5072, 12802, 85354, 9759, 5791, 62521, 8543, 65291, 73353, 25, 610, 11, 9659, 25, 610, 8, 11651, 5884, 76747, 60, 55609, 198, 29568, 459, 5385, 2449, 505, 264, 10137, 323, 264, 9659, 627, 9905, 198, 41681, 320, 496, 8, 1389, 578, 10137, 627, 81157, 320, 496, 8, 1389, 578, 9659, 627, 16851, 198, 791, 5385, 925, 627, 5715, 955, 198, 4293, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.mlflow_callback.construct_html_from_prompt_and_generation.html
98462a7839de-0
langchain.callbacks.streaming_stdout_final_only.FinalStreamingStdOutCallbackHandler¶ class langchain.callbacks.streaming_stdout_final_only.FinalStreamingStdOutCallbackHandler(*, answer_prefix_tokens: Optional[List[str]] = None, strip_tokens: bool = True, stream_prefix: bool = False)[source]¶ Bases: StreamingStdOutCallbackHandler Callback handler for streaming in agents. Only works with agents using LLMs that support streaming. Only the final output of the agent will be streamed. Instantiate FinalStreamingStdOutCallbackHandler. Parameters answer_prefix_tokens – Token sequence that prefixes the anwer. Default is [“Final”, “Answer”, “:”] strip_tokens – Ignore white spaces and new lines when comparing answer_prefix_tokens to last tokens? (to determine if answer has been reached) stream_prefix – Should answer prefix itself also be streamed? Methods __init__(*[, answer_prefix_tokens, ...]) Instantiate FinalStreamingStdOutCallbackHandler. append_to_last_tokens(token) check_if_answer_reached() on_agent_action(action, **kwargs) Run on agent action. on_agent_finish(finish, **kwargs) Run on agent end. on_chain_end(outputs, **kwargs) Run when chain ends running. on_chain_error(error, **kwargs) Run when chain errors. on_chain_start(serialized, inputs, **kwargs) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, **kwargs) Run when LLM ends running. on_llm_error(error, **kwargs) Run when LLM errors. on_llm_new_token(token, **kwargs) Run on new LLM token.
[ 5317, 8995, 72134, 85058, 68516, 21333, 18917, 1006, 992, 77609, 23586, 2729, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 85058, 68516, 21333, 18917, 1006, 992, 77609, 23586, 2729, 7646, 3126, 4163, 11, 4320, 14301, 29938, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 13619, 29938, 25, 1845, 284, 3082, 11, 4365, 14301, 25, 1845, 284, 3641, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 45910, 23586, 2729, 7646, 3126, 198, 7646, 7158, 369, 17265, 304, 13307, 627, 7456, 4375, 449, 13307, 1701, 445, 11237, 82, 430, 1862, 17265, 627, 7456, 279, 1620, 2612, 315, 279, 8479, 690, 387, 74345, 627, 81651, 13321, 77609, 23586, 2729, 7646, 3126, 627, 9905, 198, 9399, 14301, 29938, 1389, 9857, 8668, 430, 63676, 279, 459, 6703, 627, 3760, 374, 510, 2118, 19918, 9520, 1054, 16533, 9520, 1054, 25, 863, 933, 13406, 29938, 1389, 40071, 4251, 12908, 323, 502, 5238, 994, 27393, 198, 9399, 14301, 29938, 311, 1566, 11460, 30, 320, 998, 8417, 422, 4320, 706, 1027, 198, 265, 3939, 340, 4116, 14301, 1389, 12540, 4320, 9436, 5196, 1101, 387, 74345, 5380, 18337, 198, 565, 2381, 69106, 38372, 4194, 9399, 14301, 29938, 11, 4194, 1131, 2608, 81651, 13321, 77609, 23586, 2729, 7646, 3126, 627, 5200, 2401, 12473, 29938, 13577, 340, 2071, 11366, 29634, 1311, 3939, 746, 263, 26814, 8090, 15665, 11, 4194, 334, 9872, 340, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 334, 9872, 340, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 6869, 389, 502, 445, 11237, 4037, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streaming_stdout_final_only.FinalStreamingStdOutCallbackHandler.html
98462a7839de-1
on_llm_new_token(token, **kwargs) Run on new LLM token. on_llm_start(serialized, prompts, **kwargs) Run when LLM starts running. on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, **kwargs) Run on arbitrary text. on_tool_end(output, **kwargs) Run when tool ends running. on_tool_error(error, **kwargs) Run when tool errors. on_tool_start(serialized, input_str, **kwargs) Run when tool starts running. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline append_to_last_tokens(token: str) → None[source]¶ check_if_answer_reached() → bool[source]¶ on_agent_action(action: AgentAction, **kwargs: Any) → Any¶ Run on agent action. on_agent_finish(finish: AgentFinish, **kwargs: Any) → None¶ Run on agent end. on_chain_end(outputs: Dict[str, Any], **kwargs: Any) → None¶ Run when chain ends running. on_chain_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None¶ Run when chain errors.
[ 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 6869, 389, 502, 445, 11237, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 8638, 4401, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 5200, 2401, 12473, 29938, 13577, 25, 610, 8, 11651, 2290, 76747, 60, 55609, 198, 2071, 11366, 29634, 1311, 3939, 368, 11651, 1845, 76747, 60, 55609, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 8957, 6103, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streaming_stdout_final_only.FinalStreamingStdOutCallbackHandler.html
98462a7839de-2
Run when chain errors. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any) → None¶ Run when chain starts running. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, **kwargs: Any) → None¶ Run when LLM ends running. on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None¶ Run when LLM errors. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Run on new LLM token. Only available when streaming is enabled. on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → None[source]¶ Run when LLM starts running. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_text(text: str, **kwargs: Any) → None¶ Run on arbitrary text.
[ 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 502, 445, 11237, 4037, 13, 8442, 2561, 994, 17265, 374, 9147, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 389, 25142, 1495, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streaming_stdout_final_only.FinalStreamingStdOutCallbackHandler.html
98462a7839de-3
Run on arbitrary text. on_tool_end(output: str, **kwargs: Any) → None¶ Run when tool ends running. on_tool_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None¶ Run when tool errors. on_tool_start(serialized: Dict[str, Any], input_str: str, **kwargs: Any) → None¶ Run when tool starts running. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streaming_stdout_final_only.FinalStreamingStdOutCallbackHandler.html
5fa47c41ef8a-0
langchain.callbacks.manager.AsyncCallbackManagerForLLMRun¶ class langchain.callbacks.manager.AsyncCallbackManagerForLLMRun(*, run_id: UUID, handlers: List[BaseCallbackHandler], inheritable_handlers: List[BaseCallbackHandler], parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: AsyncRunManager, LLMManagerMixin Async callback manager for LLM run. Initialize the run manager. Parameters run_id (UUID) – The ID of the run. handlers (List[BaseCallbackHandler]) – The list of handlers. inheritable_handlers (List[BaseCallbackHandler]) – The list of inheritable handlers. parent_run_id (UUID, optional) – The ID of the parent run. Defaults to None. tags (Optional[List[str]]) – The list of tags. inheritable_tags (Optional[List[str]]) – The list of inheritable tags. Methods __init__(*, run_id, handlers, ...[, ...]) Initialize the run manager. get_noop_manager() Return a manager that doesn't perform any operations. on_llm_end(response, **kwargs) Run when LLM ends running. on_llm_error(error, **kwargs) Run when LLM errors. on_llm_new_token(token, **kwargs) Run when LLM generates a new token. on_text(text, **kwargs) Run when text is received. classmethod get_noop_manager() → BRM¶ Return a manager that doesn’t perform any operations. Returns The noop manager. Return type BaseRunManager async on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ Run when LLM ends running.
[ 5317, 8995, 72134, 33915, 45219, 7646, 2087, 2520, 4178, 44, 6869, 55609, 198, 1058, 8859, 8995, 72134, 33915, 45219, 7646, 2087, 2520, 4178, 44, 6869, 4163, 11, 1629, 851, 25, 24628, 11, 25050, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 1796, 58, 4066, 7646, 3126, 1145, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 22149, 6869, 2087, 11, 445, 11237, 2087, 39556, 198, 6662, 4927, 6783, 369, 445, 11237, 1629, 627, 10130, 279, 1629, 6783, 627, 9905, 198, 6236, 851, 320, 25786, 8, 1389, 578, 3110, 315, 279, 1629, 627, 56727, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 25050, 627, 13119, 481, 58137, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 24683, 481, 25050, 627, 3850, 14334, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 2748, 1629, 627, 16672, 311, 2290, 627, 14412, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 9681, 627, 13119, 481, 16735, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 24683, 481, 9681, 627, 18337, 198, 565, 2381, 3889, 12594, 4194, 6236, 851, 11, 4194, 56727, 11, 4194, 1131, 38372, 4194, 1131, 2608, 10130, 279, 1629, 6783, 627, 456, 6673, 454, 12418, 746, 5715, 264, 6783, 430, 3250, 956, 2804, 904, 7677, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 994, 1495, 374, 4036, 627, 27853, 636, 6673, 454, 12418, 368, 11651, 19333, 44, 55609, 198, 5715, 264, 6783, 430, 3250, 1431, 2804, 904, 7677, 627, 16851, 198, 791, 61929, 6783, 627, 5715, 955, 198, 4066, 6869, 2087, 198, 7847, 389, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManagerForLLMRun.html
5fa47c41ef8a-1
Run when LLM ends running. Parameters response (LLMResult) – The LLM result. async on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when LLM errors. Parameters error (Exception or KeyboardInterrupt) – The error. async on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Run when LLM generates a new token. Parameters token (str) – The new token. async on_text(text: str, **kwargs: Any) → Any¶ Run when text is received. Parameters text (str) – The received text. Returns The result of the callback. Return type Any
[ 6869, 994, 445, 11237, 10548, 4401, 627, 9905, 198, 2376, 320, 4178, 44, 2122, 8, 1389, 578, 445, 11237, 1121, 627, 7847, 389, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 9905, 198, 850, 320, 1378, 477, 85288, 8, 1389, 578, 1493, 627, 7847, 389, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 9905, 198, 5963, 320, 496, 8, 1389, 578, 502, 4037, 627, 7847, 389, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 1495, 374, 4036, 627, 9905, 198, 1342, 320, 496, 8, 1389, 578, 4036, 1495, 627, 16851, 198, 791, 1121, 315, 279, 4927, 627, 5715, 955, 198, 8780 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManagerForLLMRun.html
a677e8e714ef-0
langchain.callbacks.streamlit.streamlit_callback_handler.ToolRecord¶ class langchain.callbacks.streamlit.streamlit_callback_handler.ToolRecord(name, input_str)[source]¶ Bases: NamedTuple Create new instance of ToolRecord(name, input_str) Methods __init__() count(value, /) Return number of occurrences of value. index(value[, start, stop]) Return first index of value. Attributes input_str Alias for field number 1 name Alias for field number 0 count(value, /)¶ Return number of occurrences of value. index(value, start=0, stop=9223372036854775807, /)¶ Return first index of value. Raises ValueError if the value is not present. input_str: str¶ Alias for field number 1 name: str¶ Alias for field number 0
[ 5317, 8995, 72134, 15307, 32735, 15307, 32735, 12802, 10393, 25443, 6607, 55609, 198, 1058, 8859, 8995, 72134, 15307, 32735, 15307, 32735, 12802, 10393, 25443, 6607, 3232, 11, 1988, 2966, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 41559, 29781, 198, 4110, 502, 2937, 315, 13782, 6607, 3232, 11, 1988, 2966, 340, 18337, 198, 565, 2381, 33716, 1868, 3764, 11, 4194, 54660, 5715, 1396, 315, 57115, 315, 907, 627, 1275, 3764, 38372, 4194, 2527, 11, 4194, 9684, 2608, 5715, 1176, 1963, 315, 907, 627, 10738, 198, 1379, 2966, 198, 23555, 369, 2115, 1396, 220, 16, 198, 609, 198, 23555, 369, 2115, 1396, 220, 15, 198, 1868, 3764, 11, 611, 8, 55609, 198, 5715, 1396, 315, 57115, 315, 907, 627, 1275, 3764, 11, 1212, 28, 15, 11, 3009, 28, 20275, 17609, 9639, 23717, 21144, 18216, 22, 11, 611, 8, 55609, 198, 5715, 1176, 1963, 315, 907, 627, 36120, 15764, 422, 279, 907, 374, 539, 3118, 627, 1379, 2966, 25, 610, 55609, 198, 23555, 369, 2115, 1396, 220, 16, 198, 609, 25, 610, 55609, 198, 23555, 369, 2115, 1396, 220, 15 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streamlit.streamlit_callback_handler.ToolRecord.html
485509645840-0
langchain.callbacks.tracers.stdout.ConsoleCallbackHandler¶ class langchain.callbacks.tracers.stdout.ConsoleCallbackHandler(**kwargs: Any)[source]¶ Bases: BaseTracer Tracer that prints to the console. Methods __init__(**kwargs) get_breadcrumbs(run) get_parents(run) on_agent_action(action, *, run_id[, ...]) Run on agent action. on_agent_finish(finish, *, run_id[, ...]) Run on agent end. on_chain_end(outputs, *, run_id, **kwargs) End a trace for a chain run. on_chain_error(error, *, run_id, **kwargs) Handle an error for a chain run. on_chain_start(serialized, inputs, *, run_id) Start a trace for a chain run. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, *, run_id, **kwargs) End a trace for an LLM run. on_llm_error(error, *, run_id, **kwargs) Handle an error for an LLM run. on_llm_new_token(token, *, run_id[, ...]) Run on new LLM token. on_llm_start(serialized, prompts, *, run_id) Start a trace for an LLM run. on_retriever_end(documents, *, run_id, **kwargs) Run when Retriever ends running. on_retriever_error(error, *, run_id, **kwargs) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running.
[ 5317, 8995, 72134, 5543, 73797, 25880, 47398, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 5543, 73797, 25880, 47398, 7646, 3126, 22551, 9872, 25, 5884, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 1305, 9779, 198, 1305, 9779, 430, 24370, 311, 279, 2393, 627, 18337, 198, 565, 2381, 3889, 334, 9872, 340, 456, 890, 25473, 39872, 340, 456, 82819, 39872, 340, 263, 26814, 8090, 15665, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 3812, 264, 11917, 369, 264, 8957, 1629, 627, 263, 31683, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 7144, 459, 1493, 369, 264, 8957, 1629, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 12594, 4194, 6236, 851, 340, 3563, 264, 11917, 369, 264, 8957, 1629, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 3812, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 7144, 459, 1493, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 502, 445, 11237, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 12594, 4194, 6236, 851, 340, 3563, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.stdout.ConsoleCallbackHandler.html
485509645840-1
Run when Retriever starts running. on_text(text, *, run_id[, parent_run_id]) Run on arbitrary text. on_tool_end(output, *, run_id, **kwargs) End a trace for a tool run. on_tool_error(error, *, run_id, **kwargs) Handle an error for a tool run. on_tool_start(serialized, input_str, *, run_id) Start a trace for a tool run. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. name raise_error run_inline get_breadcrumbs(run: Run) → str[source]¶ get_parents(run: Run) → List[Run][source]¶ on_agent_action(action: AgentAction, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent action. on_agent_finish(finish: AgentFinish, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent end. on_chain_end(outputs: Dict[str, Any], *, run_id: UUID, **kwargs: Any) → None¶ End a trace for a chain run. on_chain_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Handle an error for a chain run.
[ 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 3812, 264, 11917, 369, 264, 5507, 1629, 627, 263, 23627, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 7144, 459, 1493, 369, 264, 5507, 1629, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 12594, 4194, 6236, 851, 340, 3563, 264, 11917, 369, 264, 5507, 1629, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 609, 198, 19223, 4188, 198, 6236, 42971, 198, 456, 890, 25473, 39872, 25, 6588, 8, 11651, 610, 76747, 60, 55609, 198, 456, 82819, 39872, 25, 6588, 8, 11651, 1796, 58, 6869, 1483, 2484, 60, 55609, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3812, 264, 11917, 369, 264, 8957, 1629, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 7144, 459, 1493, 369, 264, 8957, 1629, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.stdout.ConsoleCallbackHandler.html
485509645840-2
Handle an error for a chain run. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], *, run_id: UUID, tags: Optional[List[str]] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Start a trace for a chain run. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, *, run_id: UUID, **kwargs: Any) → None¶ End a trace for an LLM run. on_llm_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Handle an error for an LLM run. on_llm_new_token(token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on new LLM token. Only available when streaming is enabled. on_llm_start(serialized: Dict[str, Any], prompts: List[str], *, run_id: UUID, tags: Optional[List[str]] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Start a trace for an LLM run. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, **kwargs: Any) → None¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Run when Retriever errors.
[ 7144, 459, 1493, 369, 264, 8957, 1629, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3563, 264, 11917, 369, 264, 8957, 1629, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3812, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 7144, 459, 1493, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 502, 445, 11237, 4037, 13, 8442, 2561, 994, 17265, 374, 9147, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 12039, 1629, 851, 25, 24628, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3563, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.stdout.ConsoleCallbackHandler.html
485509645840-3
Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Run when Retriever starts running. on_text(text: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on arbitrary text. on_tool_end(output: str, *, run_id: UUID, **kwargs: Any) → None¶ End a trace for a tool run. on_tool_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Handle an error for a tool run. on_tool_start(serialized: Dict[str, Any], input_str: str, *, run_id: UUID, tags: Optional[List[str]] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Start a trace for a tool run. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. name = 'console_callback_handler'¶ raise_error: bool = False¶ run_inline: bool = False¶ run_map: Dict[str, Run]¶
[ 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3812, 264, 11917, 369, 264, 5507, 1629, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 7144, 459, 1493, 369, 264, 5507, 1629, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3563, 264, 11917, 369, 264, 5507, 1629, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 609, 284, 364, 5467, 12802, 10393, 6, 55609, 198, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609, 198, 6236, 5489, 25, 30226, 17752, 11, 6588, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.stdout.ConsoleCallbackHandler.html
2b368c43c01e-0
langchain.callbacks.aim_callback.AimCallbackHandler¶ class langchain.callbacks.aim_callback.AimCallbackHandler(repo: Optional[str] = None, experiment_name: Optional[str] = None, system_tracking_interval: Optional[int] = 10, log_system_params: bool = True)[source]¶ Bases: BaseMetadataCallbackHandler, BaseCallbackHandler Callback Handler that logs to Aim. Parameters repo (str, optional) – Aim repository path or Repo object to which Run object is bound. If skipped, default Repo is used. experiment_name (str, optional) – Sets Run’s experiment property. ‘default’ if not specified. Can be used later to query runs/sequences. system_tracking_interval (int, optional) – Sets the tracking interval in seconds for system usage metrics (CPU, Memory, etc.). Set to None to disable system metrics tracking. log_system_params (bool, optional) – Enable/Disable logging of system params such as installed packages, git info, environment variables, etc. This handler will utilize the associated callback method called and formats the input of each callback function with metadata regarding the state of LLM run and then logs the response to Aim. Initialize callback handler. Methods __init__([repo, experiment_name, ...]) Initialize callback handler. flush_tracker([repo, experiment_name, ...]) Flush the tracker and reset the session. get_custom_callback_meta() on_agent_action(action, **kwargs) Run on agent action. on_agent_finish(finish, **kwargs) Run when agent ends running. on_chain_end(outputs, **kwargs) Run when chain ends running. on_chain_error(error, **kwargs) Run when chain errors. on_chain_start(serialized, inputs, **kwargs) Run when chain starts running.
[ 5317, 8995, 72134, 13, 2706, 12802, 885, 318, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 13, 2706, 12802, 885, 318, 7646, 3126, 51708, 25, 12536, 17752, 60, 284, 2290, 11, 9526, 1292, 25, 12536, 17752, 60, 284, 2290, 11, 1887, 67205, 21183, 25, 12536, 19155, 60, 284, 220, 605, 11, 1515, 18155, 6887, 25, 1845, 284, 3082, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 14952, 7646, 3126, 11, 5464, 7646, 3126, 198, 7646, 20549, 430, 18929, 311, 71715, 627, 9905, 198, 24373, 320, 496, 11, 10309, 8, 1389, 71715, 12827, 1853, 477, 72609, 1665, 311, 902, 198, 6869, 1665, 374, 6965, 13, 1442, 36257, 11, 1670, 72609, 374, 1511, 627, 60529, 1292, 320, 496, 11, 10309, 8, 1389, 12808, 6588, 753, 9526, 3424, 627, 14336, 2309, 529, 422, 539, 5300, 13, 3053, 387, 1511, 3010, 311, 3319, 8640, 14, 62808, 627, 9125, 67205, 21183, 320, 396, 11, 10309, 8, 1389, 12808, 279, 15194, 10074, 198, 258, 6622, 369, 1887, 10648, 17150, 320, 32715, 11, 14171, 11, 5099, 36434, 2638, 311, 2290, 198, 998, 11404, 1887, 17150, 15194, 627, 848, 18155, 6887, 320, 2707, 11, 10309, 8, 1389, 19078, 14, 26558, 8558, 315, 1887, 198, 3603, 1778, 439, 10487, 14519, 11, 16749, 3630, 11, 4676, 7482, 11, 5099, 627, 2028, 7158, 690, 29166, 279, 5938, 4927, 1749, 2663, 323, 20447, 198, 1820, 1988, 315, 1855, 4927, 734, 449, 11408, 9002, 279, 1614, 315, 445, 11237, 1629, 198, 438, 1243, 18929, 279, 2077, 311, 71715, 627, 10130, 4927, 7158, 627, 18337, 198, 565, 2381, 565, 2625, 24373, 11, 4194, 60529, 1292, 11, 4194, 1131, 2608, 10130, 4927, 7158, 627, 22402, 51364, 2625, 24373, 11, 4194, 60529, 1292, 11, 4194, 1131, 2608, 47974, 279, 29431, 323, 7738, 279, 3882, 627, 456, 16254, 12802, 13686, 746, 263, 26814, 8090, 15665, 11, 4194, 334, 9872, 340, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.aim_callback.AimCallbackHandler.html
2b368c43c01e-1
Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, **kwargs) Run when LLM ends running. on_llm_error(error, **kwargs) Run when LLM errors. on_llm_new_token(token, **kwargs) Run when LLM generates a new token. on_llm_start(serialized, prompts, **kwargs) Run when LLM starts. on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, **kwargs) Run when agent is ending. on_tool_end(output, **kwargs) Run when tool ends running. on_tool_error(error, **kwargs) Run when tool errors. on_tool_start(serialized, input_str, **kwargs) Run when tool starts running. reset_callback_meta() Reset the callback metadata. setup(**kwargs) Attributes always_verbose Whether to call verbose callbacks even if verbose is False. ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline
[ 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 8638, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 374, 13696, 627, 263, 23627, 6345, 11304, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 8638, 4401, 627, 9915, 12802, 13686, 746, 15172, 279, 4927, 11408, 627, 15543, 22551, 9872, 340, 10738, 198, 33222, 69021, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.aim_callback.AimCallbackHandler.html
2b368c43c01e-2
ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline flush_tracker(repo: Optional[str] = None, experiment_name: Optional[str] = None, system_tracking_interval: Optional[int] = 10, log_system_params: bool = True, langchain_asset: Any = None, reset: bool = True, finish: bool = False) → None[source]¶ Flush the tracker and reset the session. Parameters repo (str, optional) – Aim repository path or Repo object to which Run object is bound. If skipped, default Repo is used. experiment_name (str, optional) – Sets Run’s experiment property. ‘default’ if not specified. Can be used later to query runs/sequences. system_tracking_interval (int, optional) – Sets the tracking interval in seconds for system usage metrics (CPU, Memory, etc.). Set to None to disable system metrics tracking. log_system_params (bool, optional) – Enable/Disable logging of system params such as installed packages, git info, environment variables, etc. langchain_asset – The langchain asset to save. reset – Whether to reset the session. finish – Whether to finish the run. Returns – None get_custom_callback_meta() → Dict[str, Any]¶ on_agent_action(action: AgentAction, **kwargs: Any) → Any[source]¶ Run on agent action. on_agent_finish(finish: AgentFinish, **kwargs: Any) → None[source]¶ Run when agent ends running. on_chain_end(outputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Run when chain ends running. on_chain_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when chain errors.
[ 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 22402, 51364, 51708, 25, 12536, 17752, 60, 284, 2290, 11, 9526, 1292, 25, 12536, 17752, 60, 284, 2290, 11, 1887, 67205, 21183, 25, 12536, 19155, 60, 284, 220, 605, 11, 1515, 18155, 6887, 25, 1845, 284, 3082, 11, 8859, 8995, 43399, 25, 5884, 284, 2290, 11, 7738, 25, 1845, 284, 3082, 11, 6381, 25, 1845, 284, 3641, 8, 11651, 2290, 76747, 60, 55609, 198, 47974, 279, 29431, 323, 7738, 279, 3882, 627, 9905, 198, 24373, 320, 496, 11, 10309, 8, 1389, 71715, 12827, 1853, 477, 72609, 1665, 311, 902, 198, 6869, 1665, 374, 6965, 13, 1442, 36257, 11, 1670, 72609, 374, 1511, 627, 60529, 1292, 320, 496, 11, 10309, 8, 1389, 12808, 6588, 753, 9526, 3424, 627, 14336, 2309, 529, 422, 539, 5300, 13, 3053, 387, 1511, 3010, 311, 3319, 8640, 14, 62808, 627, 9125, 67205, 21183, 320, 396, 11, 10309, 8, 1389, 12808, 279, 15194, 10074, 198, 258, 6622, 369, 1887, 10648, 17150, 320, 32715, 11, 14171, 11, 5099, 36434, 2638, 311, 2290, 198, 998, 11404, 1887, 17150, 15194, 627, 848, 18155, 6887, 320, 2707, 11, 10309, 8, 1389, 19078, 14, 26558, 8558, 315, 1887, 198, 3603, 1778, 439, 10487, 14519, 11, 16749, 3630, 11, 4676, 7482, 11, 5099, 627, 5317, 8995, 43399, 1389, 578, 8859, 8995, 9513, 311, 3665, 627, 9915, 1389, 13440, 311, 7738, 279, 3882, 627, 31250, 1389, 13440, 311, 6381, 279, 1629, 627, 16851, 1389, 2290, 198, 456, 16254, 12802, 13686, 368, 11651, 30226, 17752, 11, 5884, 60, 55609, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 6103, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.aim_callback.AimCallbackHandler.html
2b368c43c01e-3
Run when chain errors. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Run when chain starts running. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ Run when LLM ends running. on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when LLM errors. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Run when LLM generates a new token. on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → None[source]¶ Run when LLM starts. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_text(text: str, **kwargs: Any) → None[source]¶ Run when agent is ending.
[ 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8479, 374, 13696, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.aim_callback.AimCallbackHandler.html
2b368c43c01e-4
Run when agent is ending. on_tool_end(output: str, **kwargs: Any) → None[source]¶ Run when tool ends running. on_tool_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when tool errors. on_tool_start(serialized: Dict[str, Any], input_str: str, **kwargs: Any) → None[source]¶ Run when tool starts running. reset_callback_meta() → None¶ Reset the callback metadata. setup(**kwargs: Any) → None[source]¶ property always_verbose: bool¶ Whether to call verbose callbacks even if verbose is False. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 6869, 994, 8479, 374, 13696, 627, 263, 23627, 6345, 11304, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 9915, 12802, 13686, 368, 11651, 2290, 55609, 198, 15172, 279, 4927, 11408, 627, 15543, 22551, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 3784, 2744, 69021, 25, 1845, 55609, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.aim_callback.AimCallbackHandler.html
856abf5b1fb9-0
langchain.callbacks.tracers.schemas.TracerSessionBase¶ class langchain.callbacks.tracers.schemas.TracerSessionBase(*, start_time: datetime = None, name: Optional[str] = None, extra: Optional[Dict[str, Any]] = None, tenant_id: UUID)[source]¶ Bases: TracerSessionV1Base A creation class for TracerSession. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param extra: Optional[Dict[str, Any]] = None¶ param name: Optional[str] = None¶ param start_time: datetime.datetime [Optional]¶ param tenant_id: uuid.UUID [Required]¶
[ 5317, 8995, 72134, 5543, 73797, 516, 32226, 8404, 9779, 5396, 4066, 55609, 198, 1058, 8859, 8995, 72134, 5543, 73797, 516, 32226, 8404, 9779, 5396, 4066, 4163, 11, 1212, 3084, 25, 9050, 284, 2290, 11, 836, 25, 12536, 17752, 60, 284, 2290, 11, 5066, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 11, 26305, 851, 25, 24628, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 1183, 9779, 5396, 53, 16, 4066, 198, 32, 9886, 538, 369, 1183, 9779, 5396, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 5066, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 55609, 198, 913, 836, 25, 12536, 17752, 60, 284, 2290, 55609, 198, 913, 1212, 3084, 25, 9050, 20296, 510, 15669, 60, 55609, 198, 913, 26305, 851, 25, 16425, 40736, 510, 8327, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.schemas.TracerSessionBase.html
f2f1db571848-0
langchain.callbacks.manager.env_var_is_set¶ langchain.callbacks.manager.env_var_is_set(env_var: str) → bool[source]¶ Check if an environment variable is set. Parameters env_var (str) – The name of the environment variable. Returns True if the environment variable is set, False otherwise. Return type bool
[ 5317, 8995, 72134, 33915, 9449, 4715, 7037, 2667, 55609, 198, 5317, 8995, 72134, 33915, 9449, 4715, 7037, 2667, 17409, 4715, 25, 610, 8, 11651, 1845, 76747, 60, 55609, 198, 4061, 422, 459, 4676, 3977, 374, 743, 627, 9905, 198, 3239, 4715, 320, 496, 8, 1389, 578, 836, 315, 279, 4676, 3977, 627, 16851, 198, 2575, 422, 279, 4676, 3977, 374, 743, 11, 3641, 6062, 627, 5715, 955, 198, 2707 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.env_var_is_set.html
7e68e58e5b8d-0
langchain.callbacks.clearml_callback.ClearMLCallbackHandler¶ class langchain.callbacks.clearml_callback.ClearMLCallbackHandler(task_type: Optional[str] = 'inference', project_name: Optional[str] = 'langchain_callback_demo', tags: Optional[Sequence] = None, task_name: Optional[str] = None, visualize: bool = False, complexity_metrics: bool = False, stream_logs: bool = False)[source]¶ Bases: BaseMetadataCallbackHandler, BaseCallbackHandler Callback Handler that logs to ClearML. Parameters job_type (str) – The type of clearml task such as “inference”, “testing” or “qc” project_name (str) – The clearml project name tags (list) – Tags to add to the task task_name (str) – Name of the clearml task visualize (bool) – Whether to visualize the run. complexity_metrics (bool) – Whether to log complexity metrics stream_logs (bool) – Whether to stream callback actions to ClearML This handler will utilize the associated callback method and formats the input of each callback function with metadata regarding the state of LLM run, and adds the response to the list of records for both the {method}_records and action. It then logs the response to the ClearML console. Initialize callback handler. Methods __init__([task_type, project_name, tags, ...]) Initialize callback handler. analyze_text(text) Analyze text using textstat and spacy. flush_tracker([name, langchain_asset, finish]) Flush the tracker and setup the session. get_custom_callback_meta() on_agent_action(action, **kwargs) Run on agent action. on_agent_finish(finish, **kwargs) Run when agent ends running. on_chain_end(outputs, **kwargs)
[ 5317, 8995, 72134, 7578, 1029, 12802, 13833, 2735, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 7578, 1029, 12802, 13833, 2735, 7646, 3126, 17941, 1857, 25, 12536, 17752, 60, 284, 364, 258, 2251, 518, 2447, 1292, 25, 12536, 17752, 60, 284, 364, 5317, 8995, 12802, 48930, 518, 9681, 25, 12536, 58, 14405, 60, 284, 2290, 11, 3465, 1292, 25, 12536, 17752, 60, 284, 2290, 11, 51187, 25, 1845, 284, 3641, 11, 23965, 38786, 25, 1845, 284, 3641, 11, 4365, 43999, 25, 1845, 284, 3641, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 14952, 7646, 3126, 11, 5464, 7646, 3126, 198, 7646, 20549, 430, 18929, 311, 12292, 2735, 627, 9905, 198, 8975, 1857, 320, 496, 8, 1389, 578, 955, 315, 2867, 1029, 3465, 1778, 439, 1054, 258, 2251, 9520, 1054, 9016, 863, 477, 1054, 60933, 89874, 5094, 1292, 320, 496, 8, 1389, 578, 2867, 1029, 2447, 836, 198, 14412, 320, 1638, 8, 1389, 28783, 311, 923, 311, 279, 3465, 198, 8366, 1292, 320, 496, 8, 1389, 4076, 315, 279, 2867, 1029, 3465, 198, 30318, 553, 320, 2707, 8, 1389, 13440, 311, 51187, 279, 1629, 627, 24126, 488, 38786, 320, 2707, 8, 1389, 13440, 311, 1515, 23965, 17150, 198, 4116, 43999, 320, 2707, 8, 1389, 13440, 311, 4365, 4927, 6299, 311, 12292, 2735, 198, 2028, 7158, 690, 29166, 279, 5938, 4927, 1749, 323, 20447, 198, 1820, 1988, 315, 1855, 4927, 734, 449, 11408, 9002, 279, 1614, 315, 445, 11237, 1629, 345, 438, 11621, 279, 2077, 311, 279, 1160, 315, 7576, 369, 2225, 279, 314, 4492, 20009, 27295, 323, 198, 1335, 13, 1102, 1243, 18929, 279, 2077, 311, 279, 12292, 2735, 2393, 627, 10130, 4927, 7158, 627, 18337, 198, 565, 2381, 565, 2625, 8366, 1857, 11, 4194, 5094, 1292, 11, 4194, 14412, 11, 4194, 1131, 2608, 10130, 4927, 7158, 627, 94321, 4424, 7383, 340, 2127, 56956, 1495, 1701, 1495, 10079, 323, 993, 2826, 627, 22402, 51364, 2625, 609, 11, 4194, 5317, 8995, 43399, 11, 4194, 31250, 2608, 47974, 279, 29431, 323, 6642, 279, 3882, 627, 456, 16254, 12802, 13686, 746, 263, 26814, 8090, 15665, 11, 4194, 334, 9872, 340, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.clearml_callback.ClearMLCallbackHandler.html
7e68e58e5b8d-1
Run when agent ends running. on_chain_end(outputs, **kwargs) Run when chain ends running. on_chain_error(error, **kwargs) Run when chain errors. on_chain_start(serialized, inputs, **kwargs) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, **kwargs) Run when LLM ends running. on_llm_error(error, **kwargs) Run when LLM errors. on_llm_new_token(token, **kwargs) Run when LLM generates a new token. on_llm_start(serialized, prompts, **kwargs) Run when LLM starts. on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, **kwargs) Run when agent is ending. on_tool_end(output, **kwargs) Run when tool ends running. on_tool_error(error, **kwargs) Run when tool errors. on_tool_start(serialized, input_str, **kwargs) Run when tool starts running. reset_callback_meta() Reset the callback metadata. Attributes always_verbose Whether to call verbose callbacks even if verbose is False. ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever
[ 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 8638, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 374, 13696, 627, 263, 23627, 6345, 11304, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 8638, 4401, 627, 9915, 12802, 13686, 746, 15172, 279, 4927, 11408, 627, 10738, 198, 33222, 69021, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.clearml_callback.ClearMLCallbackHandler.html
7e68e58e5b8d-2
ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline analyze_text(text: str) → dict[source]¶ Analyze text using textstat and spacy. Parameters text (str) – The text to analyze. Returns A dictionary containing the complexity metrics. Return type (dict) flush_tracker(name: Optional[str] = None, langchain_asset: Any = None, finish: bool = False) → None[source]¶ Flush the tracker and setup the session. Everything after this will be a new table. Parameters name – Name of the preformed session so far so it is identifyable langchain_asset – The langchain asset to save. finish – Whether to finish the run. Returns – None get_custom_callback_meta() → Dict[str, Any]¶ on_agent_action(action: AgentAction, **kwargs: Any) → Any[source]¶ Run on agent action. on_agent_finish(finish: AgentFinish, **kwargs: Any) → None[source]¶ Run when agent ends running. on_chain_end(outputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Run when chain ends running. on_chain_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when chain errors. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Run when chain starts running. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running.
[ 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 94321, 4424, 7383, 25, 610, 8, 11651, 6587, 76747, 60, 55609, 198, 2127, 56956, 1495, 1701, 1495, 10079, 323, 993, 2826, 627, 9905, 198, 1342, 320, 496, 8, 1389, 578, 1495, 311, 24564, 627, 16851, 198, 32, 11240, 8649, 279, 23965, 17150, 627, 5715, 955, 198, 32378, 340, 22402, 51364, 3232, 25, 12536, 17752, 60, 284, 2290, 11, 8859, 8995, 43399, 25, 5884, 284, 2290, 11, 6381, 25, 1845, 284, 3641, 8, 11651, 2290, 76747, 60, 55609, 198, 47974, 279, 29431, 323, 6642, 279, 3882, 627, 36064, 1306, 420, 690, 387, 264, 502, 2007, 627, 9905, 198, 609, 1389, 4076, 315, 279, 864, 10365, 3882, 779, 3117, 779, 433, 374, 10765, 481, 198, 5317, 8995, 43399, 1389, 578, 8859, 8995, 9513, 311, 3665, 627, 31250, 1389, 13440, 311, 6381, 279, 1629, 627, 16851, 1389, 2290, 198, 456, 16254, 12802, 13686, 368, 11651, 30226, 17752, 11, 5884, 60, 55609, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.clearml_callback.ClearMLCallbackHandler.html
7e68e58e5b8d-3
Run when a chat model starts running. on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ Run when LLM ends running. on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when LLM errors. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Run when LLM generates a new token. on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → None[source]¶ Run when LLM starts. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_text(text: str, **kwargs: Any) → None[source]¶ Run when agent is ending. on_tool_end(output: str, **kwargs: Any) → None[source]¶ Run when tool ends running. on_tool_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when tool errors. on_tool_start(serialized: Dict[str, Any], input_str: str, **kwargs: Any) → None[source]¶ Run when tool starts running. reset_callback_meta() → None¶ Reset the callback metadata.
[ 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8479, 374, 13696, 627, 263, 23627, 6345, 11304, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 9915, 12802, 13686, 368, 11651, 2290, 55609, 198, 15172, 279, 4927, 11408, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.clearml_callback.ClearMLCallbackHandler.html
7e68e58e5b8d-4
reset_callback_meta() → None¶ Reset the callback metadata. property always_verbose: bool¶ Whether to call verbose callbacks even if verbose is False. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 9915, 12802, 13686, 368, 11651, 2290, 55609, 198, 15172, 279, 4927, 11408, 627, 3784, 2744, 69021, 25, 1845, 55609, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.clearml_callback.ClearMLCallbackHandler.html
dbf7cb8d7090-0
langchain.callbacks.manager.RunManager¶ class langchain.callbacks.manager.RunManager(*, run_id: UUID, handlers: List[BaseCallbackHandler], inheritable_handlers: List[BaseCallbackHandler], parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: BaseRunManager Sync Run Manager. Initialize the run manager. Parameters run_id (UUID) – The ID of the run. handlers (List[BaseCallbackHandler]) – The list of handlers. inheritable_handlers (List[BaseCallbackHandler]) – The list of inheritable handlers. parent_run_id (UUID, optional) – The ID of the parent run. Defaults to None. tags (Optional[List[str]]) – The list of tags. inheritable_tags (Optional[List[str]]) – The list of inheritable tags. Methods __init__(*, run_id, handlers, ...[, ...]) Initialize the run manager. get_noop_manager() Return a manager that doesn't perform any operations. on_text(text, **kwargs) Run when text is received. classmethod get_noop_manager() → BRM¶ Return a manager that doesn’t perform any operations. Returns The noop manager. Return type BaseRunManager on_text(text: str, **kwargs: Any) → Any[source]¶ Run when text is received. Parameters text (str) – The received text. Returns The result of the callback. Return type Any
[ 5317, 8995, 72134, 33915, 17123, 2087, 55609, 198, 1058, 8859, 8995, 72134, 33915, 17123, 2087, 4163, 11, 1629, 851, 25, 24628, 11, 25050, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 1796, 58, 4066, 7646, 3126, 1145, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 6869, 2087, 198, 12430, 6588, 10790, 627, 10130, 279, 1629, 6783, 627, 9905, 198, 6236, 851, 320, 25786, 8, 1389, 578, 3110, 315, 279, 1629, 627, 56727, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 25050, 627, 13119, 481, 58137, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 24683, 481, 25050, 627, 3850, 14334, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 2748, 1629, 627, 16672, 311, 2290, 627, 14412, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 9681, 627, 13119, 481, 16735, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 24683, 481, 9681, 627, 18337, 198, 565, 2381, 3889, 12594, 4194, 6236, 851, 11, 4194, 56727, 11, 4194, 1131, 38372, 4194, 1131, 2608, 10130, 279, 1629, 6783, 627, 456, 6673, 454, 12418, 746, 5715, 264, 6783, 430, 3250, 956, 2804, 904, 7677, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 994, 1495, 374, 4036, 627, 27853, 636, 6673, 454, 12418, 368, 11651, 19333, 44, 55609, 198, 5715, 264, 6783, 430, 3250, 1431, 2804, 904, 7677, 627, 16851, 198, 791, 61929, 6783, 627, 5715, 955, 198, 4066, 6869, 2087, 198, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 994, 1495, 374, 4036, 627, 9905, 198, 1342, 320, 496, 8, 1389, 578, 4036, 1495, 627, 16851, 198, 791, 1121, 315, 279, 4927, 627, 5715, 955, 198, 8780 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.RunManager.html
d7380b18dda2-0
langchain.callbacks.wandb_callback.construct_html_from_prompt_and_generation¶ langchain.callbacks.wandb_callback.construct_html_from_prompt_and_generation(prompt: str, generation: str) → Any[source]¶ Construct an html element from a prompt and a generation. Parameters prompt (str) – The prompt. generation (str) – The generation. Returns The html element. Return type (wandb.Html)
[ 5317, 8995, 72134, 1444, 438, 65, 12802, 85354, 9759, 5791, 62521, 8543, 65291, 55609, 198, 5317, 8995, 72134, 1444, 438, 65, 12802, 85354, 9759, 5791, 62521, 8543, 65291, 73353, 25, 610, 11, 9659, 25, 610, 8, 11651, 5884, 76747, 60, 55609, 198, 29568, 459, 5385, 2449, 505, 264, 10137, 323, 264, 9659, 627, 9905, 198, 41681, 320, 496, 8, 1389, 578, 10137, 627, 81157, 320, 496, 8, 1389, 578, 9659, 627, 16851, 198, 791, 5385, 2449, 627, 5715, 955, 198, 3706, 438, 65, 44232, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.wandb_callback.construct_html_from_prompt_and_generation.html
834ea16bb6f0-0
langchain.callbacks.wandb_callback.load_json_to_dict¶ langchain.callbacks.wandb_callback.load_json_to_dict(json_path: Union[str, Path]) → dict[source]¶ Load json file to a dictionary. Parameters json_path (str) – The path to the json file. Returns The dictionary representation of the json file. Return type (dict)
[ 5317, 8995, 72134, 1444, 438, 65, 12802, 5214, 9643, 2401, 5356, 55609, 198, 5317, 8995, 72134, 1444, 438, 65, 12802, 5214, 9643, 2401, 5356, 9488, 2703, 25, 9323, 17752, 11, 8092, 2526, 11651, 6587, 76747, 60, 55609, 198, 6003, 3024, 1052, 311, 264, 11240, 627, 9905, 198, 2285, 2703, 320, 496, 8, 1389, 578, 1853, 311, 279, 3024, 1052, 627, 16851, 198, 791, 11240, 13340, 315, 279, 3024, 1052, 627, 5715, 955, 198, 32378, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.wandb_callback.load_json_to_dict.html
fb6f68475f7e-0
langchain.callbacks.manager.CallbackManagerForLLMRun¶ class langchain.callbacks.manager.CallbackManagerForLLMRun(*, run_id: UUID, handlers: List[BaseCallbackHandler], inheritable_handlers: List[BaseCallbackHandler], parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: RunManager, LLMManagerMixin Callback manager for LLM run. Initialize the run manager. Parameters run_id (UUID) – The ID of the run. handlers (List[BaseCallbackHandler]) – The list of handlers. inheritable_handlers (List[BaseCallbackHandler]) – The list of inheritable handlers. parent_run_id (UUID, optional) – The ID of the parent run. Defaults to None. tags (Optional[List[str]]) – The list of tags. inheritable_tags (Optional[List[str]]) – The list of inheritable tags. Methods __init__(*, run_id, handlers, ...[, ...]) Initialize the run manager. get_noop_manager() Return a manager that doesn't perform any operations. on_llm_end(response, **kwargs) Run when LLM ends running. on_llm_error(error, **kwargs) Run when LLM errors. on_llm_new_token(token, **kwargs) Run when LLM generates a new token. on_text(text, **kwargs) Run when text is received. classmethod get_noop_manager() → BRM¶ Return a manager that doesn’t perform any operations. Returns The noop manager. Return type BaseRunManager on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ Run when LLM ends running. Parameters
[ 5317, 8995, 72134, 33915, 49887, 2087, 2520, 4178, 44, 6869, 55609, 198, 1058, 8859, 8995, 72134, 33915, 49887, 2087, 2520, 4178, 44, 6869, 4163, 11, 1629, 851, 25, 24628, 11, 25050, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 1796, 58, 4066, 7646, 3126, 1145, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 6588, 2087, 11, 445, 11237, 2087, 39556, 198, 7646, 6783, 369, 445, 11237, 1629, 627, 10130, 279, 1629, 6783, 627, 9905, 198, 6236, 851, 320, 25786, 8, 1389, 578, 3110, 315, 279, 1629, 627, 56727, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 25050, 627, 13119, 481, 58137, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 24683, 481, 25050, 627, 3850, 14334, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 2748, 1629, 627, 16672, 311, 2290, 627, 14412, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 9681, 627, 13119, 481, 16735, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 24683, 481, 9681, 627, 18337, 198, 565, 2381, 3889, 12594, 4194, 6236, 851, 11, 4194, 56727, 11, 4194, 1131, 38372, 4194, 1131, 2608, 10130, 279, 1629, 6783, 627, 456, 6673, 454, 12418, 746, 5715, 264, 6783, 430, 3250, 956, 2804, 904, 7677, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 994, 1495, 374, 4036, 627, 27853, 636, 6673, 454, 12418, 368, 11651, 19333, 44, 55609, 198, 5715, 264, 6783, 430, 3250, 1431, 2804, 904, 7677, 627, 16851, 198, 791, 61929, 6783, 627, 5715, 955, 198, 4066, 6869, 2087, 198, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 627, 9905 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.CallbackManagerForLLMRun.html
fb6f68475f7e-1
Run when LLM ends running. Parameters response (LLMResult) – The LLM result. on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when LLM errors. Parameters error (Exception or KeyboardInterrupt) – The error. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Run when LLM generates a new token. Parameters token (str) – The new token. on_text(text: str, **kwargs: Any) → Any¶ Run when text is received. Parameters text (str) – The received text. Returns The result of the callback. Return type Any
[ 6869, 994, 445, 11237, 10548, 4401, 627, 9905, 198, 2376, 320, 4178, 44, 2122, 8, 1389, 578, 445, 11237, 1121, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 9905, 198, 850, 320, 1378, 477, 85288, 8, 1389, 578, 1493, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 9905, 198, 5963, 320, 496, 8, 1389, 578, 502, 4037, 627, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 1495, 374, 4036, 627, 9905, 198, 1342, 320, 496, 8, 1389, 578, 4036, 1495, 627, 16851, 198, 791, 1121, 315, 279, 4927, 627, 5715, 955, 198, 8780 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.CallbackManagerForLLMRun.html
f9be8890c4c2-0
langchain.callbacks.manager.CallbackManager¶ class langchain.callbacks.manager.CallbackManager(handlers: List[BaseCallbackHandler], inheritable_handlers: Optional[List[BaseCallbackHandler]] = None, parent_run_id: Optional[UUID] = None, *, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: BaseCallbackManager Callback manager that can be used to handle callbacks from langchain. Initialize callback manager. Methods __init__(handlers[, inheritable_handlers, ...]) Initialize callback manager. add_handler(handler[, inherit]) Add a handler to the callback manager. add_tags(tags[, inherit]) configure([inheritable_callbacks, ...]) Configure the callback manager. on_chain_start(serialized, inputs[, run_id]) Run when chain starts running. on_chat_model_start(serialized, messages, ...) Run when LLM starts running. on_llm_start(serialized, prompts, **kwargs) Run when LLM starts running. on_retriever_start(query[, run_id, ...]) Run when retriever starts running. on_tool_start(serialized, input_str[, ...]) Run when tool starts running. remove_handler(handler) Remove a handler from the callback manager. remove_tags(tags) set_handler(handler[, inherit]) Set handler as the only handler on the callback manager. set_handlers(handlers[, inherit]) Set handlers as the only handlers on the callback manager. Attributes is_async Whether the callback manager is async. add_handler(handler: BaseCallbackHandler, inherit: bool = True) → None¶ Add a handler to the callback manager. add_tags(tags: List[str], inherit: bool = True) → None¶
[ 5317, 8995, 72134, 33915, 49887, 2087, 55609, 198, 1058, 8859, 8995, 72134, 33915, 49887, 2087, 64311, 9438, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 12536, 53094, 58, 4066, 7646, 3126, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 12039, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 7646, 2087, 198, 7646, 6783, 430, 649, 387, 1511, 311, 3790, 27777, 505, 8859, 8995, 627, 10130, 4927, 6783, 627, 18337, 198, 565, 2381, 3889, 56727, 38372, 4194, 13119, 481, 58137, 11, 4194, 1131, 2608, 10130, 4927, 6783, 627, 723, 10393, 37614, 38372, 4194, 13119, 2608, 2261, 264, 7158, 311, 279, 4927, 6783, 627, 723, 16735, 58313, 38372, 4194, 13119, 2608, 21678, 2625, 13119, 481, 61248, 11, 4194, 1131, 2608, 29660, 279, 4927, 6783, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 38372, 4194, 6236, 851, 2608, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 32318, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 5011, 10974, 38372, 4194, 6236, 851, 11, 4194, 1131, 2608, 6869, 994, 10992, 424, 8638, 4401, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 38372, 4194, 1131, 2608, 6869, 994, 5507, 8638, 4401, 627, 5514, 10393, 37614, 340, 13319, 264, 7158, 505, 279, 4927, 6783, 627, 5514, 16735, 58313, 340, 751, 10393, 37614, 38372, 4194, 13119, 2608, 1681, 7158, 439, 279, 1193, 7158, 389, 279, 4927, 6783, 627, 751, 58137, 64311, 9438, 38372, 4194, 13119, 2608, 1681, 25050, 439, 279, 1193, 25050, 389, 279, 4927, 6783, 627, 10738, 198, 285, 29446, 198, 25729, 279, 4927, 6783, 374, 3393, 627, 723, 10393, 37614, 25, 5464, 7646, 3126, 11, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 2261, 264, 7158, 311, 279, 4927, 6783, 627, 723, 16735, 58313, 25, 1796, 17752, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.CallbackManager.html
f9be8890c4c2-1
add_tags(tags: List[str], inherit: bool = True) → None¶ classmethod configure(inheritable_callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, local_callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, verbose: bool = False, inheritable_tags: Optional[List[str]] = None, local_tags: Optional[List[str]] = None) → CallbackManager[source]¶ Configure the callback manager. Parameters inheritable_callbacks (Optional[Callbacks], optional) – The inheritable callbacks. Defaults to None. local_callbacks (Optional[Callbacks], optional) – The local callbacks. Defaults to None. verbose (bool, optional) – Whether to enable verbose mode. Defaults to False. inheritable_tags (Optional[List[str]], optional) – The inheritable tags. Defaults to None. local_tags (Optional[List[str]], optional) – The local tags. Defaults to None. Returns The configured callback manager. Return type CallbackManager on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], run_id: Optional[UUID] = None, **kwargs: Any) → CallbackManagerForChainRun[source]¶ Run when chain starts running. Parameters serialized (Dict[str, Any]) – The serialized chain. inputs (Dict[str, Any]) – The inputs to the chain. run_id (UUID, optional) – The ID of the run. Defaults to None. Returns The callback manager for the chain run. Return type CallbackManagerForChainRun on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], **kwargs: Any) → List[CallbackManagerForLLMRun][source]¶ Run when LLM starts running. Parameters serialized (Dict[str, Any]) – The serialized LLM.
[ 723, 16735, 58313, 25, 1796, 17752, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 27853, 14749, 6024, 9447, 481, 61248, 25, 12536, 58, 33758, 53094, 58, 4066, 7646, 3126, 1145, 5464, 7646, 2087, 5163, 284, 2290, 11, 2254, 61248, 25, 12536, 58, 33758, 53094, 58, 4066, 7646, 3126, 1145, 5464, 7646, 2087, 5163, 284, 2290, 11, 14008, 25, 1845, 284, 3641, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2254, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 8, 11651, 23499, 2087, 76747, 60, 55609, 198, 29660, 279, 4927, 6783, 627, 9905, 198, 13119, 481, 61248, 320, 15669, 58, 45561, 1145, 10309, 8, 1389, 578, 24683, 481, 198, 69411, 13, 37090, 311, 2290, 627, 2497, 61248, 320, 15669, 58, 45561, 1145, 10309, 8, 1389, 578, 2254, 27777, 627, 16672, 311, 2290, 627, 15228, 320, 2707, 11, 10309, 8, 1389, 13440, 311, 7431, 14008, 3941, 13, 37090, 311, 3641, 627, 13119, 481, 16735, 320, 15669, 53094, 17752, 21128, 10309, 8, 1389, 578, 24683, 481, 9681, 627, 16672, 311, 2290, 627, 2497, 16735, 320, 15669, 53094, 17752, 21128, 10309, 8, 1389, 578, 2254, 9681, 627, 16672, 311, 2290, 627, 16851, 198, 791, 20336, 4927, 6783, 627, 5715, 955, 198, 7646, 2087, 198, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 1629, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 23499, 2087, 2520, 19368, 6869, 76747, 60, 55609, 198, 6869, 994, 8957, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 8957, 627, 25986, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 11374, 311, 279, 8957, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 16851, 198, 791, 4927, 6783, 369, 279, 8957, 1629, 627, 5715, 955, 198, 7646, 2087, 2520, 19368, 6869, 198, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 3146, 9872, 25, 5884, 8, 11651, 1796, 58, 7646, 2087, 2520, 4178, 44, 6869, 1483, 2484, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 445, 11237, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.CallbackManager.html
f9be8890c4c2-2
Parameters serialized (Dict[str, Any]) – The serialized LLM. messages (List[List[BaseMessage]]) – The list of messages. run_id (UUID, optional) – The ID of the run. Defaults to None. Returns A callback manager for eachlist of messages as an LLM run. Return type List[CallbackManagerForLLMRun] on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → List[CallbackManagerForLLMRun][source]¶ Run when LLM starts running. Parameters serialized (Dict[str, Any]) – The serialized LLM. prompts (List[str]) – The list of prompts. run_id (UUID, optional) – The ID of the run. Defaults to None. Returns A callback manager for eachprompt as an LLM run. Return type List[CallbackManagerForLLMRun] on_retriever_start(query: str, run_id: Optional[UUID] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → CallbackManagerForRetrieverRun[source]¶ Run when retriever starts running. on_tool_start(serialized: Dict[str, Any], input_str: str, run_id: Optional[UUID] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → CallbackManagerForToolRun[source]¶ Run when tool starts running. Parameters serialized (Dict[str, Any]) – The serialized tool. input_str (str) – The input to the tool. run_id (UUID, optional) – The ID of the run. Defaults to None. parent_run_id (UUID, optional) – The ID of the parent run. Defaults to None. Returns The callback manager for the tool run. Return type
[ 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 445, 11237, 627, 16727, 320, 861, 53094, 58, 4066, 2097, 30716, 1389, 578, 1160, 315, 6743, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 16851, 198, 32, 4927, 6783, 369, 1855, 1638, 315, 6743, 439, 459, 445, 11237, 1629, 627, 5715, 955, 198, 861, 58, 7646, 2087, 2520, 4178, 44, 6869, 933, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 1796, 58, 7646, 2087, 2520, 4178, 44, 6869, 1483, 2484, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 445, 11237, 627, 25475, 13044, 320, 861, 17752, 2526, 1389, 578, 1160, 315, 52032, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 16851, 198, 32, 4927, 6783, 369, 1855, 41681, 439, 459, 445, 11237, 1629, 627, 5715, 955, 198, 861, 58, 7646, 2087, 2520, 4178, 44, 6869, 933, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 1629, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 23499, 2087, 2520, 12289, 462, 2099, 6869, 76747, 60, 55609, 198, 6869, 994, 10992, 424, 8638, 4401, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 1629, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 23499, 2087, 2520, 7896, 6869, 76747, 60, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 5507, 627, 1379, 2966, 320, 496, 8, 1389, 578, 1988, 311, 279, 5507, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 3850, 14334, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 2748, 1629, 13, 37090, 311, 2290, 627, 16851, 198, 791, 4927, 6783, 369, 279, 5507, 1629, 627, 5715, 955 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.CallbackManager.html
f9be8890c4c2-3
Returns The callback manager for the tool run. Return type CallbackManagerForToolRun remove_handler(handler: BaseCallbackHandler) → None¶ Remove a handler from the callback manager. remove_tags(tags: List[str]) → None¶ set_handler(handler: BaseCallbackHandler, inherit: bool = True) → None¶ Set handler as the only handler on the callback manager. set_handlers(handlers: List[BaseCallbackHandler], inherit: bool = True) → None¶ Set handlers as the only handlers on the callback manager. property is_async: bool¶ Whether the callback manager is async.
[ 16851, 198, 791, 4927, 6783, 369, 279, 5507, 1629, 627, 5715, 955, 198, 7646, 2087, 2520, 7896, 6869, 198, 5514, 10393, 37614, 25, 5464, 7646, 3126, 8, 11651, 2290, 55609, 198, 13319, 264, 7158, 505, 279, 4927, 6783, 627, 5514, 16735, 58313, 25, 1796, 17752, 2526, 11651, 2290, 55609, 198, 751, 10393, 37614, 25, 5464, 7646, 3126, 11, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 1681, 7158, 439, 279, 1193, 7158, 389, 279, 4927, 6783, 627, 751, 58137, 64311, 9438, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 1681, 25050, 439, 279, 1193, 25050, 389, 279, 4927, 6783, 627, 3784, 374, 29446, 25, 1845, 55609, 198, 25729, 279, 4927, 6783, 374, 3393, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.CallbackManager.html
450b9755f446-0
langchain.callbacks.tracers.schemas.Run¶ class langchain.callbacks.tracers.schemas.Run(*, id: UUID, name: str, start_time: datetime, run_type: str, end_time: Optional[datetime] = None, extra: Optional[dict] = None, error: Optional[str] = None, serialized: Optional[dict] = None, events: Optional[List[Dict]] = None, inputs: dict, outputs: Optional[dict] = None, reference_example_id: Optional[UUID] = None, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, execution_order: int, child_execution_order: int, child_runs: List[Run] = None)[source]¶ Bases: RunBase Run schema for the V2 API in the Tracer. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param child_execution_order: int [Required]¶ param child_runs: List[langchain.callbacks.tracers.schemas.Run] [Optional]¶ param end_time: Optional[<module 'datetime' from '/home/docs/.asdf/installs/python/3.11.4/lib/python3.11/datetime.py'>] = None¶ param error: Optional[str] = None¶ param events: Optional[List[Dict]] = None¶ param execution_order: int [Required]¶ param extra: Optional[dict] = None¶ param id: uuid.UUID [Required]¶ param inputs: dict [Required]¶ param name: str [Required]¶ param outputs: Optional[dict] = None¶ param parent_run_id: Optional[uuid.UUID] = None¶ param reference_example_id: Optional[uuid.UUID] = None¶ param run_type: str [Required]¶
[ 5317, 8995, 72134, 5543, 73797, 516, 32226, 17123, 55609, 198, 1058, 8859, 8995, 72134, 5543, 73797, 516, 32226, 17123, 4163, 11, 887, 25, 24628, 11, 836, 25, 610, 11, 1212, 3084, 25, 9050, 11, 1629, 1857, 25, 610, 11, 842, 3084, 25, 12536, 58, 15814, 60, 284, 2290, 11, 5066, 25, 12536, 58, 8644, 60, 284, 2290, 11, 1493, 25, 12536, 17752, 60, 284, 2290, 11, 34016, 25, 12536, 58, 8644, 60, 284, 2290, 11, 4455, 25, 12536, 53094, 58, 13755, 5163, 284, 2290, 11, 11374, 25, 6587, 11, 16674, 25, 12536, 58, 8644, 60, 284, 2290, 11, 5905, 40404, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 11572, 8028, 25, 528, 11, 1716, 62048, 8028, 25, 528, 11, 1716, 68452, 25, 1796, 58, 6869, 60, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 6588, 4066, 198, 6869, 11036, 369, 279, 650, 17, 5446, 304, 279, 1183, 9779, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 1716, 62048, 8028, 25, 528, 510, 8327, 60, 55609, 198, 913, 1716, 68452, 25, 1796, 58, 5317, 8995, 72134, 5543, 73797, 516, 32226, 17123, 60, 510, 15669, 60, 55609, 198, 913, 842, 3084, 25, 12536, 58, 27, 4450, 364, 15814, 6, 505, 3434, 5227, 27057, 12196, 77715, 14, 6442, 5700, 24147, 14, 18, 13, 806, 13, 19, 8357, 24147, 18, 13, 806, 3529, 28762, 7345, 6404, 60, 284, 2290, 55609, 198, 913, 1493, 25, 12536, 17752, 60, 284, 2290, 55609, 198, 913, 4455, 25, 12536, 53094, 58, 13755, 5163, 284, 2290, 55609, 198, 913, 11572, 8028, 25, 528, 510, 8327, 60, 55609, 198, 913, 5066, 25, 12536, 58, 8644, 60, 284, 2290, 55609, 198, 913, 887, 25, 16425, 40736, 510, 8327, 60, 55609, 198, 913, 11374, 25, 6587, 510, 8327, 60, 55609, 198, 913, 836, 25, 610, 510, 8327, 60, 55609, 198, 913, 16674, 25, 12536, 58, 8644, 60, 284, 2290, 55609, 198, 913, 2748, 14334, 851, 25, 12536, 58, 17566, 40736, 60, 284, 2290, 55609, 198, 913, 5905, 40404, 851, 25, 12536, 58, 17566, 40736, 60, 284, 2290, 55609, 198, 913, 1629, 1857, 25, 610, 510, 8327, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.schemas.Run.html
450b9755f446-1
param run_type: str [Required]¶ param serialized: Optional[dict] = None¶ param start_time: <module 'datetime' from '/home/docs/.asdf/installs/python/3.11.4/lib/python3.11/datetime.py'> [Required]¶ param tags: Optional[List[str]] [Optional]¶ validator assign_name  »  all fields[source]¶ Assign name to the run.
[ 913, 1629, 1857, 25, 610, 510, 8327, 60, 55609, 198, 913, 34016, 25, 12536, 58, 8644, 60, 284, 2290, 55609, 198, 913, 1212, 3084, 25, 366, 4450, 364, 15814, 6, 505, 3434, 5227, 27057, 12196, 77715, 14, 6442, 5700, 24147, 14, 18, 13, 806, 13, 19, 8357, 24147, 18, 13, 806, 3529, 28762, 7345, 6404, 510, 8327, 60, 55609, 198, 913, 9681, 25, 12536, 53094, 17752, 5163, 510, 15669, 60, 55609, 198, 16503, 9993, 1292, 4194, 8345, 4194, 682, 5151, 76747, 60, 55609, 198, 30033, 836, 311, 279, 1629, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.schemas.Run.html
249fef95378b-0
langchain.callbacks.tracers.wandb.WandbRunArgs¶ class langchain.callbacks.tracers.wandb.WandbRunArgs[source]¶ Bases: TypedDict Arguments for the WandbTracer. Methods __init__(*args, **kwargs) clear() copy() fromkeys([value]) Create a new dictionary with keys from iterable and values set to value. get(key[, default]) Return the value for key if key is in the dictionary, else default. items() keys() pop(k[,d]) If the key is not found, return the default if given; otherwise, raise a KeyError. popitem() Remove and return a (key, value) pair as a 2-tuple. setdefault(key[, default]) Insert key with a value of default if key is not in the dictionary. update([E, ]**F) If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() Attributes job_type dir config project entity reinit tags group name notes magic config_exclude_keys config_include_keys anonymous mode allow_val_change resume force tensorboard sync_tensorboard monitor_gym save_code id settings clear() → None.  Remove all items from D.¶ copy() → a shallow copy of D¶ fromkeys(value=None, /)¶ Create a new dictionary with keys from iterable and values set to value.
[ 5317, 8995, 72134, 5543, 73797, 1444, 438, 65, 1196, 438, 65, 6869, 4209, 55609, 198, 1058, 8859, 8995, 72134, 5543, 73797, 1444, 438, 65, 1196, 438, 65, 6869, 4209, 76747, 60, 55609, 198, 33, 2315, 25, 51654, 13755, 198, 19686, 369, 279, 70029, 65, 1305, 9779, 627, 18337, 198, 565, 2381, 69106, 2164, 11, 4194, 334, 9872, 340, 7574, 746, 8728, 746, 1527, 10786, 2625, 970, 2608, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 38372, 4194, 2309, 2608, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 746, 10786, 746, 8539, 6097, 38372, 67, 2608, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 11, 4933, 264, 39194, 627, 8539, 1224, 746, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 751, 2309, 4962, 38372, 4194, 2309, 2608, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 2443, 2625, 36, 11, 4194, 79441, 37, 340, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 60, 1442, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 763, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 746, 10738, 198, 8975, 1857, 198, 3826, 198, 1710, 198, 5094, 198, 3069, 198, 265, 2381, 198, 14412, 198, 4166, 198, 609, 198, 18790, 198, 38551, 198, 1710, 89768, 12919, 198, 1710, 38978, 12919, 198, 26347, 198, 8684, 198, 7331, 6320, 16326, 198, 42495, 198, 9009, 198, 47211, 2541, 198, 13293, 24065, 2541, 198, 33325, 1928, 1631, 198, 6766, 4229, 198, 307, 198, 6648, 198, 7574, 368, 11651, 2290, 13, 4194, 11016, 682, 3673, 505, 423, 13, 55609, 198, 8728, 368, 11651, 264, 26682, 3048, 315, 423, 55609, 198, 1527, 10786, 3764, 5980, 11, 611, 8, 55609, 198, 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.wandb.WandbRunArgs.html
249fef95378b-1
Create a new dictionary with keys from iterable and values set to value. get(key, default=None, /)¶ Return the value for key if key is in the dictionary, else default. items() → a set-like object providing a view on D's items¶ keys() → a set-like object providing a view on D's keys¶ pop(k[, d]) → v, remove specified key and return the corresponding value.¶ If the key is not found, return the default if given; otherwise, raise a KeyError. popitem()¶ Remove and return a (key, value) pair as a 2-tuple. Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty. setdefault(key, default=None, /)¶ Insert key with a value of default if key is not in the dictionary. Return the value for key if key is in the dictionary, else default. update([E, ]**F) → None.  Update D from dict/iterable E and F.¶ If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] values() → an object providing a view on D's values¶ allow_val_change: Optional[bool]¶ anonymous: Optional[str]¶ config: Union[Dict, str, None]¶ config_exclude_keys: Optional[List[str]]¶ config_include_keys: Optional[List[str]]¶ dir: Optional[StrPath]¶ entity: Optional[str]¶ force: Optional[bool]¶
[ 4110, 264, 502, 11240, 449, 7039, 505, 51934, 323, 2819, 743, 311, 907, 627, 456, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 3699, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 3673, 55609, 198, 10786, 368, 11651, 264, 743, 12970, 1665, 8405, 264, 1684, 389, 423, 596, 7039, 55609, 198, 8539, 6097, 38372, 294, 2526, 11651, 348, 11, 4148, 5300, 1401, 323, 471, 279, 12435, 907, 13, 55609, 198, 2746, 279, 1401, 374, 539, 1766, 11, 471, 279, 1670, 422, 2728, 26, 6062, 345, 19223, 264, 39194, 627, 8539, 1224, 368, 55609, 198, 13319, 323, 471, 264, 320, 798, 11, 907, 8, 6857, 439, 264, 220, 17, 2442, 6189, 627, 55328, 527, 6052, 304, 445, 27088, 320, 4354, 3502, 11, 1176, 9994, 8, 2015, 627, 36120, 39194, 422, 279, 6587, 374, 4384, 627, 751, 2309, 4962, 11, 1670, 5980, 11, 611, 8, 55609, 198, 14099, 1401, 449, 264, 907, 315, 1670, 422, 1401, 374, 539, 304, 279, 11240, 627, 5715, 279, 907, 369, 1401, 422, 1401, 374, 304, 279, 11240, 11, 775, 1670, 627, 2443, 2625, 36, 11, 2331, 334, 37, 8, 11651, 2290, 13, 4194, 5666, 423, 505, 6587, 14, 2058, 481, 469, 323, 435, 13, 55609, 198, 2746, 469, 374, 3118, 323, 706, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 304, 469, 25, 423, 6874, 60, 284, 469, 6874, 933, 2746, 469, 374, 3118, 323, 37856, 264, 662, 10786, 368, 1749, 11, 1243, 1587, 25, 220, 369, 597, 11, 348, 304, 469, 25, 423, 6874, 60, 284, 348, 198, 644, 3060, 1162, 11, 420, 374, 8272, 555, 25, 369, 597, 304, 435, 25, 220, 423, 6874, 60, 284, 435, 6874, 933, 3745, 368, 11651, 459, 1665, 8405, 264, 1684, 389, 423, 596, 2819, 55609, 198, 7331, 6320, 16326, 25, 12536, 58, 2707, 60, 55609, 198, 26347, 25, 12536, 17752, 60, 55609, 198, 1710, 25, 9323, 58, 13755, 11, 610, 11, 2290, 60, 55609, 198, 1710, 89768, 12919, 25, 12536, 53094, 17752, 5163, 55609, 198, 1710, 38978, 12919, 25, 12536, 53094, 17752, 5163, 55609, 198, 3826, 25, 12536, 58, 2645, 1858, 60, 55609, 198, 3069, 25, 12536, 17752, 60, 55609, 198, 9009, 25, 12536, 58, 2707, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.wandb.WandbRunArgs.html
249fef95378b-2
entity: Optional[str]¶ force: Optional[bool]¶ group: Optional[str]¶ id: Optional[str]¶ job_type: Optional[str]¶ magic: Optional[Union[dict, str, bool]]¶ mode: Optional[str]¶ monitor_gym: Optional[bool]¶ name: Optional[str]¶ notes: Optional[str]¶ project: Optional[str]¶ reinit: Optional[bool]¶ resume: Optional[Union[bool, str]]¶ save_code: Optional[bool]¶ settings: Union[WBSettings, Dict[str, Any], None]¶ sync_tensorboard: Optional[bool]¶ tags: Optional[Sequence]¶ tensorboard: Optional[bool]¶
[ 3069, 25, 12536, 17752, 60, 55609, 198, 9009, 25, 12536, 58, 2707, 60, 55609, 198, 4166, 25, 12536, 17752, 60, 55609, 198, 307, 25, 12536, 17752, 60, 55609, 198, 8975, 1857, 25, 12536, 17752, 60, 55609, 198, 38551, 25, 12536, 58, 33758, 58, 8644, 11, 610, 11, 1845, 5163, 55609, 198, 8684, 25, 12536, 17752, 60, 55609, 198, 33325, 1928, 1631, 25, 12536, 58, 2707, 60, 55609, 198, 609, 25, 12536, 17752, 60, 55609, 198, 18790, 25, 12536, 17752, 60, 55609, 198, 5094, 25, 12536, 17752, 60, 55609, 198, 265, 2381, 25, 12536, 58, 2707, 60, 55609, 198, 42495, 25, 12536, 58, 33758, 58, 2707, 11, 610, 5163, 55609, 198, 6766, 4229, 25, 12536, 58, 2707, 60, 55609, 198, 6648, 25, 9323, 58, 53968, 6214, 11, 30226, 17752, 11, 5884, 1145, 2290, 60, 55609, 198, 13293, 24065, 2541, 25, 12536, 58, 2707, 60, 55609, 198, 14412, 25, 12536, 58, 14405, 60, 55609, 198, 47211, 2541, 25, 12536, 58, 2707, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.wandb.WandbRunArgs.html
c77ee8d4b0d9-0
langchain.callbacks.manager.AsyncCallbackManager¶ class langchain.callbacks.manager.AsyncCallbackManager(handlers: List[BaseCallbackHandler], inheritable_handlers: Optional[List[BaseCallbackHandler]] = None, parent_run_id: Optional[UUID] = None, *, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: BaseCallbackManager Async callback manager that can be used to handle callbacks from LangChain. Initialize callback manager. Methods __init__(handlers[, inheritable_handlers, ...]) Initialize callback manager. add_handler(handler[, inherit]) Add a handler to the callback manager. add_tags(tags[, inherit]) configure([inheritable_callbacks, ...]) Configure the async callback manager. on_chain_start(serialized, inputs[, run_id]) Run when chain starts running. on_chat_model_start(serialized, messages, ...) Run when LLM starts running. on_llm_start(serialized, prompts, **kwargs) Run when LLM starts running. on_retriever_start(query[, run_id, ...]) Run when retriever starts running. on_tool_start(serialized, input_str[, ...]) Run when tool starts running. remove_handler(handler) Remove a handler from the callback manager. remove_tags(tags) set_handler(handler[, inherit]) Set handler as the only handler on the callback manager. set_handlers(handlers[, inherit]) Set handlers as the only handlers on the callback manager. Attributes is_async Return whether the handler is async. add_handler(handler: BaseCallbackHandler, inherit: bool = True) → None¶ Add a handler to the callback manager. add_tags(tags: List[str], inherit: bool = True) → None¶
[ 5317, 8995, 72134, 33915, 45219, 7646, 2087, 55609, 198, 1058, 8859, 8995, 72134, 33915, 45219, 7646, 2087, 64311, 9438, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 12536, 53094, 58, 4066, 7646, 3126, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 12039, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 7646, 2087, 198, 6662, 4927, 6783, 430, 649, 387, 1511, 311, 3790, 27777, 505, 23272, 19368, 627, 10130, 4927, 6783, 627, 18337, 198, 565, 2381, 3889, 56727, 38372, 4194, 13119, 481, 58137, 11, 4194, 1131, 2608, 10130, 4927, 6783, 627, 723, 10393, 37614, 38372, 4194, 13119, 2608, 2261, 264, 7158, 311, 279, 4927, 6783, 627, 723, 16735, 58313, 38372, 4194, 13119, 2608, 21678, 2625, 13119, 481, 61248, 11, 4194, 1131, 2608, 29660, 279, 3393, 4927, 6783, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 38372, 4194, 6236, 851, 2608, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 32318, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 5011, 10974, 38372, 4194, 6236, 851, 11, 4194, 1131, 2608, 6869, 994, 10992, 424, 8638, 4401, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 38372, 4194, 1131, 2608, 6869, 994, 5507, 8638, 4401, 627, 5514, 10393, 37614, 340, 13319, 264, 7158, 505, 279, 4927, 6783, 627, 5514, 16735, 58313, 340, 751, 10393, 37614, 38372, 4194, 13119, 2608, 1681, 7158, 439, 279, 1193, 7158, 389, 279, 4927, 6783, 627, 751, 58137, 64311, 9438, 38372, 4194, 13119, 2608, 1681, 25050, 439, 279, 1193, 25050, 389, 279, 4927, 6783, 627, 10738, 198, 285, 29446, 198, 5715, 3508, 279, 7158, 374, 3393, 627, 723, 10393, 37614, 25, 5464, 7646, 3126, 11, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 2261, 264, 7158, 311, 279, 4927, 6783, 627, 723, 16735, 58313, 25, 1796, 17752, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManager.html
c77ee8d4b0d9-1
add_tags(tags: List[str], inherit: bool = True) → None¶ classmethod configure(inheritable_callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, local_callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, verbose: bool = False, inheritable_tags: Optional[List[str]] = None, local_tags: Optional[List[str]] = None) → AsyncCallbackManager[source]¶ Configure the async callback manager. Parameters inheritable_callbacks (Optional[Callbacks], optional) – The inheritable callbacks. Defaults to None. local_callbacks (Optional[Callbacks], optional) – The local callbacks. Defaults to None. verbose (bool, optional) – Whether to enable verbose mode. Defaults to False. inheritable_tags (Optional[List[str]], optional) – The inheritable tags. Defaults to None. local_tags (Optional[List[str]], optional) – The local tags. Defaults to None. Returns The configured async callback manager. Return type AsyncCallbackManager async on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], run_id: Optional[UUID] = None, **kwargs: Any) → AsyncCallbackManagerForChainRun[source]¶ Run when chain starts running. Parameters serialized (Dict[str, Any]) – The serialized chain. inputs (Dict[str, Any]) – The inputs to the chain. run_id (UUID, optional) – The ID of the run. Defaults to None. Returns The async callback managerfor the chain run. Return type AsyncCallbackManagerForChainRun async on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], **kwargs: Any) → Any[source]¶ Run when LLM starts running. Parameters serialized (Dict[str, Any]) – The serialized LLM.
[ 723, 16735, 58313, 25, 1796, 17752, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 27853, 14749, 6024, 9447, 481, 61248, 25, 12536, 58, 33758, 53094, 58, 4066, 7646, 3126, 1145, 5464, 7646, 2087, 5163, 284, 2290, 11, 2254, 61248, 25, 12536, 58, 33758, 53094, 58, 4066, 7646, 3126, 1145, 5464, 7646, 2087, 5163, 284, 2290, 11, 14008, 25, 1845, 284, 3641, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2254, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 8, 11651, 92536, 2087, 76747, 60, 55609, 198, 29660, 279, 3393, 4927, 6783, 627, 9905, 198, 13119, 481, 61248, 320, 15669, 58, 45561, 1145, 10309, 8, 1389, 578, 24683, 481, 198, 69411, 13, 37090, 311, 2290, 627, 2497, 61248, 320, 15669, 58, 45561, 1145, 10309, 8, 1389, 578, 2254, 27777, 627, 16672, 311, 2290, 627, 15228, 320, 2707, 11, 10309, 8, 1389, 13440, 311, 7431, 14008, 3941, 13, 37090, 311, 3641, 627, 13119, 481, 16735, 320, 15669, 53094, 17752, 21128, 10309, 8, 1389, 578, 24683, 481, 9681, 627, 16672, 311, 2290, 627, 2497, 16735, 320, 15669, 53094, 17752, 21128, 10309, 8, 1389, 578, 2254, 9681, 627, 16672, 311, 2290, 627, 16851, 198, 791, 20336, 3393, 4927, 6783, 627, 5715, 955, 198, 6662, 7646, 2087, 198, 7847, 389, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 1629, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 92536, 2087, 2520, 19368, 6869, 76747, 60, 55609, 198, 6869, 994, 8957, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 8957, 627, 25986, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 11374, 311, 279, 8957, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 16851, 198, 791, 3393, 4927, 6783, 2000, 279, 8957, 1629, 627, 5715, 955, 198, 6662, 7646, 2087, 2520, 19368, 6869, 198, 7847, 389, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 445, 11237, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManager.html
c77ee8d4b0d9-2
Parameters serialized (Dict[str, Any]) – The serialized LLM. messages (List[List[BaseMessage]]) – The list of messages. run_id (UUID, optional) – The ID of the run. Defaults to None. Returns The list ofasync callback managers, one for each LLM Run corresponding to each inner message list. Return type List[AsyncCallbackManagerForLLMRun] async on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → List[AsyncCallbackManagerForLLMRun][source]¶ Run when LLM starts running. Parameters serialized (Dict[str, Any]) – The serialized LLM. prompts (List[str]) – The list of prompts. run_id (UUID, optional) – The ID of the run. Defaults to None. Returns The list of asynccallback managers, one for each LLM Run corresponding to each prompt. Return type List[AsyncCallbackManagerForLLMRun] async on_retriever_start(query: str, run_id: Optional[UUID] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → AsyncCallbackManagerForRetrieverRun[source]¶ Run when retriever starts running. async on_tool_start(serialized: Dict[str, Any], input_str: str, run_id: Optional[UUID] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → AsyncCallbackManagerForToolRun[source]¶ Run when tool starts running. Parameters serialized (Dict[str, Any]) – The serialized tool. input_str (str) – The input to the tool. run_id (UUID, optional) – The ID of the run. Defaults to None.
[ 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 445, 11237, 627, 16727, 320, 861, 53094, 58, 4066, 2097, 30716, 1389, 578, 1160, 315, 6743, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 16851, 198, 791, 1160, 315, 7847, 4927, 20258, 11, 832, 369, 1855, 445, 11237, 6588, 198, 6133, 6961, 287, 311, 1855, 9358, 220, 1984, 1160, 627, 5715, 955, 198, 861, 58, 6662, 7646, 2087, 2520, 4178, 44, 6869, 933, 7847, 389, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 1796, 58, 6662, 7646, 2087, 2520, 4178, 44, 6869, 1483, 2484, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 445, 11237, 627, 25475, 13044, 320, 861, 17752, 2526, 1389, 578, 1160, 315, 52032, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 16851, 198, 791, 1160, 315, 439, 1910, 641, 3503, 20258, 11, 832, 369, 1855, 445, 11237, 6588, 12435, 198, 998, 1855, 10137, 627, 5715, 955, 198, 861, 58, 6662, 7646, 2087, 2520, 4178, 44, 6869, 933, 7847, 389, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 1629, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 92536, 2087, 2520, 12289, 462, 2099, 6869, 76747, 60, 55609, 198, 6869, 994, 10992, 424, 8638, 4401, 627, 7847, 389, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 1629, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 92536, 2087, 2520, 7896, 6869, 76747, 60, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 9905, 198, 76377, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 34016, 5507, 627, 1379, 2966, 320, 496, 8, 1389, 578, 1988, 311, 279, 5507, 627, 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManager.html
c77ee8d4b0d9-3
run_id (UUID, optional) – The ID of the run. Defaults to None. parent_run_id (UUID, optional) – The ID of the parent run. Defaults to None. Returns The async callback managerfor the tool run. Return type AsyncCallbackManagerForToolRun remove_handler(handler: BaseCallbackHandler) → None¶ Remove a handler from the callback manager. remove_tags(tags: List[str]) → None¶ set_handler(handler: BaseCallbackHandler, inherit: bool = True) → None¶ Set handler as the only handler on the callback manager. set_handlers(handlers: List[BaseCallbackHandler], inherit: bool = True) → None¶ Set handlers as the only handlers on the callback manager. property is_async: bool¶ Return whether the handler is async.
[ 6236, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 1629, 13, 37090, 311, 2290, 627, 3850, 14334, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 2748, 1629, 627, 16672, 311, 2290, 627, 16851, 198, 791, 3393, 4927, 6783, 2000, 279, 5507, 1629, 627, 5715, 955, 198, 6662, 7646, 2087, 2520, 7896, 6869, 198, 5514, 10393, 37614, 25, 5464, 7646, 3126, 8, 11651, 2290, 55609, 198, 13319, 264, 7158, 505, 279, 4927, 6783, 627, 5514, 16735, 58313, 25, 1796, 17752, 2526, 11651, 2290, 55609, 198, 751, 10393, 37614, 25, 5464, 7646, 3126, 11, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 1681, 7158, 439, 279, 1193, 7158, 389, 279, 4927, 6783, 627, 751, 58137, 64311, 9438, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 55609, 198, 1681, 25050, 439, 279, 1193, 25050, 389, 279, 4927, 6783, 627, 3784, 374, 29446, 25, 1845, 55609, 198, 5715, 3508, 279, 7158, 374, 3393, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManager.html
17c227e127e0-0
langchain.callbacks.base.AsyncCallbackHandler¶ class langchain.callbacks.base.AsyncCallbackHandler[source]¶ Bases: BaseCallbackHandler Async callback handler that can be used to handle callbacks from langchain. Methods __init__() on_agent_action(action, *, run_id[, ...]) Run on agent action. on_agent_finish(finish, *, run_id[, ...]) Run on agent end. on_chain_end(outputs, *, run_id[, parent_run_id]) Run when chain ends running. on_chain_error(error, *, run_id[, parent_run_id]) Run when chain errors. on_chain_start(serialized, inputs, *, run_id) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, *, run_id[, parent_run_id]) Run when LLM ends running. on_llm_error(error, *, run_id[, parent_run_id]) Run when LLM errors. on_llm_new_token(token, *, run_id[, ...]) Run on new LLM token. on_llm_start(serialized, prompts, *, run_id) Run when LLM starts running. on_retriever_end(documents, *, run_id[, ...]) Run on retriever end. on_retriever_error(error, *, run_id[, ...]) Run on retriever error. on_retriever_start(query, *, run_id[, ...]) Run on retriever start. on_text(text, *, run_id[, parent_run_id]) Run on arbitrary text.
[ 5317, 8995, 72134, 9105, 45219, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 9105, 45219, 7646, 3126, 76747, 60, 55609, 198, 33, 2315, 25, 5464, 7646, 3126, 198, 6662, 4927, 7158, 430, 649, 387, 1511, 311, 3790, 27777, 505, 8859, 8995, 627, 18337, 198, 565, 2381, 33716, 263, 26814, 8090, 15665, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 502, 445, 11237, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 10992, 424, 842, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 10992, 424, 1493, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 10992, 424, 1212, 627, 263, 4424, 7383, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 389, 25142, 1495, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.AsyncCallbackHandler.html
17c227e127e0-1
Run on arbitrary text. on_tool_end(output, *, run_id[, parent_run_id]) Run when tool ends running. on_tool_error(error, *, run_id[, parent_run_id]) Run when tool errors. on_tool_start(serialized, input_str, *, run_id) Run when tool starts running. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline async on_agent_action(action: AgentAction, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run on agent action. async on_agent_finish(finish: AgentFinish, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run on agent end. async on_chain_end(outputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run when chain ends running. async on_chain_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run when chain errors. async on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → None[source]¶ Run when chain starts running.
[ 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 5507, 8638, 4401, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 7847, 389, 26814, 8090, 15665, 25, 21372, 2573, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 8479, 1957, 627, 7847, 389, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 8479, 842, 627, 7847, 389, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 7847, 389, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 6103, 627, 7847, 389, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.AsyncCallbackHandler.html
17c227e127e0-2
Run when chain starts running. async on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any[source]¶ Run when a chat model starts running. async on_llm_end(response: LLMResult, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run when LLM ends running. async on_llm_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run when LLM errors. async on_llm_new_token(token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run on new LLM token. Only available when streaming is enabled. async on_llm_start(serialized: Dict[str, Any], prompts: List[str], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → None[source]¶ Run when LLM starts running. async on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run on retriever end. async on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run on retriever error.
[ 6869, 994, 8957, 8638, 4401, 627, 7847, 389, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 7847, 389, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 627, 7847, 389, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 7847, 389, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 502, 445, 11237, 4037, 13, 8442, 2561, 994, 17265, 374, 9147, 627, 7847, 389, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 7847, 389, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 10992, 424, 842, 627, 7847, 389, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 10992, 424, 1493, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.AsyncCallbackHandler.html
17c227e127e0-3
Run on retriever error. async on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run on retriever start. async on_text(text: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run on arbitrary text. async on_tool_end(output: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run when tool ends running. async on_tool_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None[source]¶ Run when tool errors. async on_tool_start(serialized: Dict[str, Any], input_str: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → None[source]¶ Run when tool starts running. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 6869, 389, 10992, 424, 1493, 627, 7847, 389, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 10992, 424, 1212, 627, 7847, 389, 4424, 7383, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 25142, 1495, 627, 7847, 389, 23627, 6345, 11304, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 10548, 4401, 627, 7847, 389, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 6103, 627, 7847, 389, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.AsyncCallbackHandler.html
37e2d6ff8350-0
langchain.callbacks.flyte_callback.analyze_text¶ langchain.callbacks.flyte_callback.analyze_text(text: str, nlp: Any = None) → dict[source]¶ Analyze text using textstat and spacy. Parameters text (str) – The text to analyze. nlp (spacy.lang) – The spacy language model to use for visualization. Returns A dictionary containing the complexity metrics and visualizationfiles serialized to HTML string. Return type (dict)
[ 5317, 8995, 72134, 840, 398, 668, 12802, 10985, 56956, 4424, 55609, 198, 5317, 8995, 72134, 840, 398, 668, 12802, 10985, 56956, 4424, 7383, 25, 610, 11, 308, 13855, 25, 5884, 284, 2290, 8, 11651, 6587, 76747, 60, 55609, 198, 2127, 56956, 1495, 1701, 1495, 10079, 323, 993, 2826, 627, 9905, 198, 1342, 320, 496, 8, 1389, 578, 1495, 311, 24564, 627, 77, 13855, 320, 2203, 2826, 8178, 8, 1389, 578, 993, 2826, 4221, 1646, 311, 1005, 369, 42148, 627, 16851, 198, 32, 11240, 8649, 279, 23965, 17150, 323, 42148, 7346, 34016, 311, 9492, 925, 627, 5715, 955, 198, 32378, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.flyte_callback.analyze_text.html
07cb0fe42555-0
langchain.callbacks.manager.AsyncCallbackManagerForChainRun¶ class langchain.callbacks.manager.AsyncCallbackManagerForChainRun(*, run_id: UUID, handlers: List[BaseCallbackHandler], inheritable_handlers: List[BaseCallbackHandler], parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: AsyncRunManager, ChainManagerMixin Async callback manager for chain run. Initialize the run manager. Parameters run_id (UUID) – The ID of the run. handlers (List[BaseCallbackHandler]) – The list of handlers. inheritable_handlers (List[BaseCallbackHandler]) – The list of inheritable handlers. parent_run_id (UUID, optional) – The ID of the parent run. Defaults to None. tags (Optional[List[str]]) – The list of tags. inheritable_tags (Optional[List[str]]) – The list of inheritable tags. Methods __init__(*, run_id, handlers, ...[, ...]) Initialize the run manager. get_child([tag]) Get a child callback manager. get_noop_manager() Return a manager that doesn't perform any operations. on_agent_action(action, **kwargs) Run when agent action is received. on_agent_finish(finish, **kwargs) Run when agent finish is received. on_chain_end(outputs, **kwargs) Run when chain ends running. on_chain_error(error, **kwargs) Run when chain errors. on_text(text, **kwargs) Run when text is received. get_child(tag: Optional[str] = None) → AsyncCallbackManager[source]¶ Get a child callback manager. Parameters tag (str, optional) – The tag for the child callback manager.
[ 5317, 8995, 72134, 33915, 45219, 7646, 2087, 2520, 19368, 6869, 55609, 198, 1058, 8859, 8995, 72134, 33915, 45219, 7646, 2087, 2520, 19368, 6869, 4163, 11, 1629, 851, 25, 24628, 11, 25050, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 1796, 58, 4066, 7646, 3126, 1145, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 22149, 6869, 2087, 11, 29625, 2087, 39556, 198, 6662, 4927, 6783, 369, 8957, 1629, 627, 10130, 279, 1629, 6783, 627, 9905, 198, 6236, 851, 320, 25786, 8, 1389, 578, 3110, 315, 279, 1629, 627, 56727, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 25050, 627, 13119, 481, 58137, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 24683, 481, 25050, 627, 3850, 14334, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 2748, 1629, 627, 16672, 311, 2290, 627, 14412, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 9681, 627, 13119, 481, 16735, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 24683, 481, 9681, 627, 18337, 198, 565, 2381, 3889, 12594, 4194, 6236, 851, 11, 4194, 56727, 11, 4194, 1131, 38372, 4194, 1131, 2608, 10130, 279, 1629, 6783, 627, 456, 17716, 2625, 4681, 2608, 1991, 264, 1716, 4927, 6783, 627, 456, 6673, 454, 12418, 746, 5715, 264, 6783, 430, 3250, 956, 2804, 904, 7677, 627, 263, 26814, 8090, 15665, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 1957, 374, 4036, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 6381, 374, 4036, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 6103, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 994, 1495, 374, 4036, 627, 456, 17716, 19904, 25, 12536, 17752, 60, 284, 2290, 8, 11651, 92536, 2087, 76747, 60, 55609, 198, 1991, 264, 1716, 4927, 6783, 627, 9905, 198, 4681, 320, 496, 11, 10309, 8, 1389, 578, 4877, 369, 279, 1716, 4927, 6783, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManagerForChainRun.html
07cb0fe42555-1
Parameters tag (str, optional) – The tag for the child callback manager. Defaults to None. Returns The child callback manager. Return type AsyncCallbackManager classmethod get_noop_manager() → BRM¶ Return a manager that doesn’t perform any operations. Returns The noop manager. Return type BaseRunManager async on_agent_action(action: AgentAction, **kwargs: Any) → Any[source]¶ Run when agent action is received. Parameters action (AgentAction) – The agent action. Returns The result of the callback. Return type Any async on_agent_finish(finish: AgentFinish, **kwargs: Any) → Any[source]¶ Run when agent finish is received. Parameters finish (AgentFinish) – The agent finish. Returns The result of the callback. Return type Any async on_chain_end(outputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Run when chain ends running. Parameters outputs (Dict[str, Any]) – The outputs of the chain. async on_chain_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when chain errors. Parameters error (Exception or KeyboardInterrupt) – The error. async on_text(text: str, **kwargs: Any) → Any¶ Run when text is received. Parameters text (str) – The received text. Returns The result of the callback. Return type Any
[ 9905, 198, 4681, 320, 496, 11, 10309, 8, 1389, 578, 4877, 369, 279, 1716, 4927, 6783, 627, 16672, 311, 2290, 627, 16851, 198, 791, 1716, 4927, 6783, 627, 5715, 955, 198, 6662, 7646, 2087, 198, 27853, 636, 6673, 454, 12418, 368, 11651, 19333, 44, 55609, 198, 5715, 264, 6783, 430, 3250, 1431, 2804, 904, 7677, 627, 16851, 198, 791, 61929, 6783, 627, 5715, 955, 198, 4066, 6869, 2087, 198, 7847, 389, 26814, 8090, 15665, 25, 21372, 2573, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 994, 8479, 1957, 374, 4036, 627, 9905, 198, 1335, 320, 17230, 2573, 8, 1389, 578, 8479, 1957, 627, 16851, 198, 791, 1121, 315, 279, 4927, 627, 5715, 955, 198, 8780, 198, 7847, 389, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 994, 8479, 6381, 374, 4036, 627, 9905, 198, 31250, 320, 17230, 26748, 8, 1389, 578, 8479, 6381, 627, 16851, 198, 791, 1121, 315, 279, 4927, 627, 5715, 955, 198, 8780, 198, 7847, 389, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 9905, 198, 42106, 320, 13755, 17752, 11, 5884, 2526, 1389, 578, 16674, 315, 279, 8957, 627, 7847, 389, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 6103, 627, 9905, 198, 850, 320, 1378, 477, 85288, 8, 1389, 578, 1493, 627, 7847, 389, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 1495, 374, 4036, 627, 9905, 198, 1342, 320, 496, 8, 1389, 578, 4036, 1495, 627, 16851, 198, 791, 1121, 315, 279, 4927, 627, 5715, 955, 198, 8780 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.AsyncCallbackManagerForChainRun.html
7082aa5f63f1-0
langchain.callbacks.utils.import_spacy¶ langchain.callbacks.utils.import_spacy() → Any[source]¶ Import the spacy python package and raise an error if it is not installed.
[ 5317, 8995, 72134, 8576, 35997, 10331, 2826, 55609, 198, 5317, 8995, 72134, 8576, 35997, 10331, 2826, 368, 11651, 5884, 76747, 60, 55609, 198, 11772, 279, 993, 2826, 10344, 6462, 323, 4933, 459, 1493, 422, 433, 374, 539, 10487, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.utils.import_spacy.html
40de090202c1-0
langchain.callbacks.streamlit.__init__.StreamlitCallbackHandler¶ langchain.callbacks.streamlit.__init__.StreamlitCallbackHandler(parent_container: DeltaGenerator, *, max_thought_containers: int = 4, expand_new_thoughts: bool = True, collapse_completed_thoughts: bool = True, thought_labeler: Optional[LLMThoughtLabeler] = None) → BaseCallbackHandler[source]¶ Construct a new StreamlitCallbackHandler. This CallbackHandler is geared towards use with a LangChain Agent; it displays the Agent’s LLM and tool-usage “thoughts” inside a series of Streamlit expanders. Parameters parent_container – The st.container that will contain all the Streamlit elements that the Handler creates. max_thought_containers – The max number of completed LLM thought containers to show at once. When this threshold is reached, a new thought will cause the oldest thoughts to be collapsed into a “History” expander. Defaults to 4. expand_new_thoughts – Each LLM “thought” gets its own st.expander. This param controls whether that expander is expanded by default. Defaults to True. collapse_completed_thoughts – If True, LLM thought expanders will be collapsed when completed. Defaults to True. thought_labeler – An optional custom LLMThoughtLabeler instance. If unspecified, the handler will use the default thought labeling logic. Defaults to None. Returns A new StreamlitCallbackHandler instance. Note that this is an “auto-updating” API (if the installed version of Streamlit) has a more recent StreamlitCallbackHandler implementation, an instance of that class will be used.
[ 5317, 8995, 72134, 15307, 32735, 4952, 2381, 19247, 3103, 32735, 7646, 3126, 55609, 198, 5317, 8995, 72134, 15307, 32735, 4952, 2381, 19247, 3103, 32735, 7646, 3126, 12772, 16226, 25, 26002, 12846, 11, 12039, 1973, 5978, 2509, 10472, 21211, 25, 528, 284, 220, 19, 11, 9407, 6046, 5978, 2509, 82, 25, 1845, 284, 3082, 11, 18678, 50168, 5978, 2509, 82, 25, 1845, 284, 3082, 11, 3463, 6234, 261, 25, 12536, 58, 4178, 44, 85269, 2535, 261, 60, 284, 2290, 8, 11651, 5464, 7646, 3126, 76747, 60, 55609, 198, 29568, 264, 502, 9384, 32735, 7646, 3126, 13, 1115, 23499, 3126, 374, 59547, 7119, 198, 817, 449, 264, 23272, 19368, 21372, 26, 433, 19207, 279, 21372, 753, 445, 11237, 323, 5507, 12, 18168, 1054, 61665, 82, 89874, 42450, 264, 4101, 315, 9384, 32735, 9407, 388, 627, 9905, 198, 3850, 16226, 1389, 578, 357, 18863, 430, 690, 6782, 682, 279, 9384, 32735, 5540, 430, 279, 198, 3126, 11705, 627, 2880, 5978, 2509, 10472, 21211, 1389, 578, 1973, 1396, 315, 8308, 445, 11237, 3463, 24794, 311, 1501, 520, 3131, 13, 3277, 420, 198, 30002, 374, 8813, 11, 264, 502, 3463, 690, 5353, 279, 24417, 11555, 311, 387, 198, 43128, 1139, 264, 1054, 13730, 863, 1367, 8363, 13, 37090, 311, 220, 19, 627, 33417, 6046, 5978, 2509, 82, 1389, 9062, 445, 11237, 1054, 61665, 863, 5334, 1202, 1866, 357, 14072, 8363, 13, 1115, 1719, 11835, 3508, 430, 198, 4683, 8363, 374, 17626, 555, 1670, 13, 37090, 311, 3082, 627, 18391, 50168, 5978, 2509, 82, 1389, 1442, 3082, 11, 445, 11237, 3463, 9407, 388, 690, 387, 29368, 994, 8308, 627, 16672, 311, 3082, 627, 61665, 6234, 261, 1389, 1556, 10309, 2587, 445, 11237, 85269, 2535, 261, 2937, 13, 1442, 55411, 11, 279, 7158, 198, 14724, 1005, 279, 1670, 3463, 55402, 12496, 13, 37090, 311, 2290, 627, 16851, 198, 32, 502, 9384, 32735, 7646, 3126, 2937, 627, 9290, 430, 420, 374, 459, 1054, 3989, 5352, 14442, 863, 5446, 320, 333, 279, 10487, 2373, 315, 9384, 32735, 340, 4752, 264, 810, 3293, 9384, 32735, 7646, 3126, 8292, 11, 459, 2937, 315, 430, 538, 198, 14724, 387, 1511, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streamlit.__init__.StreamlitCallbackHandler.html
7ac87b2bdbdb-0
langchain.callbacks.tracers.schemas.TracerSessionV1Base¶ class langchain.callbacks.tracers.schemas.TracerSessionV1Base(*, start_time: datetime = None, name: Optional[str] = None, extra: Optional[Dict[str, Any]] = None)[source]¶ Bases: BaseModel Base class for TracerSessionV1. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to form a valid model. param extra: Optional[Dict[str, Any]] = None¶ param name: Optional[str] = None¶ param start_time: datetime.datetime [Optional]¶
[ 5317, 8995, 72134, 5543, 73797, 516, 32226, 8404, 9779, 5396, 53, 16, 4066, 55609, 198, 1058, 8859, 8995, 72134, 5543, 73797, 516, 32226, 8404, 9779, 5396, 53, 16, 4066, 4163, 11, 1212, 3084, 25, 9050, 284, 2290, 11, 836, 25, 12536, 17752, 60, 284, 2290, 11, 5066, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 65705, 198, 4066, 538, 369, 1183, 9779, 5396, 53, 16, 627, 4110, 264, 502, 1646, 555, 23115, 323, 69772, 1988, 828, 505, 16570, 6105, 627, 36120, 54129, 422, 279, 1988, 828, 4250, 387, 16051, 311, 1376, 264, 2764, 1646, 627, 913, 5066, 25, 12536, 58, 13755, 17752, 11, 5884, 5163, 284, 2290, 55609, 198, 913, 836, 25, 12536, 17752, 60, 284, 2290, 55609, 198, 913, 1212, 3084, 25, 9050, 20296, 510, 15669, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.schemas.TracerSessionV1Base.html
b3b1c9cceebe-0
langchain.callbacks.aim_callback.import_aim¶ langchain.callbacks.aim_callback.import_aim() → Any[source]¶ Import the aim python package and raise an error if it is not installed.
[ 5317, 8995, 72134, 13, 2706, 12802, 35997, 62, 2706, 55609, 198, 5317, 8995, 72134, 13, 2706, 12802, 35997, 62, 2706, 368, 11651, 5884, 76747, 60, 55609, 198, 11772, 279, 9395, 10344, 6462, 323, 4933, 459, 1493, 422, 433, 374, 539, 10487, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.aim_callback.import_aim.html
45544cbe3b38-0
langchain.callbacks.manager.BaseRunManager¶ class langchain.callbacks.manager.BaseRunManager(*, run_id: UUID, handlers: List[BaseCallbackHandler], inheritable_handlers: List[BaseCallbackHandler], parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: RunManagerMixin Base class for run manager (a bound callback manager). Initialize the run manager. Parameters run_id (UUID) – The ID of the run. handlers (List[BaseCallbackHandler]) – The list of handlers. inheritable_handlers (List[BaseCallbackHandler]) – The list of inheritable handlers. parent_run_id (UUID, optional) – The ID of the parent run. Defaults to None. tags (Optional[List[str]]) – The list of tags. inheritable_tags (Optional[List[str]]) – The list of inheritable tags. Methods __init__(*, run_id, handlers, ...[, ...]) Initialize the run manager. get_noop_manager() Return a manager that doesn't perform any operations. on_text(text, *, run_id[, parent_run_id]) Run on arbitrary text. classmethod get_noop_manager() → BRM[source]¶ Return a manager that doesn’t perform any operations. Returns The noop manager. Return type BaseRunManager on_text(text: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on arbitrary text.
[ 5317, 8995, 72134, 33915, 13316, 6869, 2087, 55609, 198, 1058, 8859, 8995, 72134, 33915, 13316, 6869, 2087, 4163, 11, 1629, 851, 25, 24628, 11, 25050, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 1796, 58, 4066, 7646, 3126, 1145, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 6588, 2087, 39556, 198, 4066, 538, 369, 1629, 6783, 320, 64, 6965, 4927, 6783, 4390, 10130, 279, 1629, 6783, 627, 9905, 198, 6236, 851, 320, 25786, 8, 1389, 578, 3110, 315, 279, 1629, 627, 56727, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 25050, 627, 13119, 481, 58137, 320, 861, 58, 4066, 7646, 3126, 2526, 1389, 578, 1160, 315, 24683, 481, 25050, 627, 3850, 14334, 851, 320, 25786, 11, 10309, 8, 1389, 578, 3110, 315, 279, 2748, 1629, 627, 16672, 311, 2290, 627, 14412, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 9681, 627, 13119, 481, 16735, 320, 15669, 53094, 17752, 30716, 1389, 578, 1160, 315, 24683, 481, 9681, 627, 18337, 198, 565, 2381, 3889, 12594, 4194, 6236, 851, 11, 4194, 56727, 11, 4194, 1131, 38372, 4194, 1131, 2608, 10130, 279, 1629, 6783, 627, 456, 6673, 454, 12418, 746, 5715, 264, 6783, 430, 3250, 956, 2804, 904, 7677, 627, 263, 4424, 7383, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 389, 25142, 1495, 627, 27853, 636, 6673, 454, 12418, 368, 11651, 19333, 44, 76747, 60, 55609, 198, 5715, 264, 6783, 430, 3250, 1431, 2804, 904, 7677, 627, 16851, 198, 791, 61929, 6783, 627, 5715, 955, 198, 4066, 6869, 2087, 198, 263, 4424, 7383, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 25142, 1495, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.BaseRunManager.html
5641469b2c04-0
langchain.callbacks.tracers.base.TracerException¶ class langchain.callbacks.tracers.base.TracerException[source]¶ Bases: Exception Base class for exceptions in tracers module. add_note()¶ Exception.add_note(note) – add a note to the exception with_traceback()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self. args¶
[ 5317, 8995, 72134, 5543, 73797, 9105, 8404, 9779, 1378, 55609, 198, 1058, 8859, 8995, 72134, 5543, 73797, 9105, 8404, 9779, 1378, 76747, 60, 55609, 198, 33, 2315, 25, 4204, 198, 4066, 538, 369, 20157, 304, 490, 73797, 4793, 627, 723, 28306, 368, 55609, 198, 1378, 1388, 28306, 45151, 8, 1389, 198, 723, 264, 5296, 311, 279, 4788, 198, 4291, 24489, 1445, 368, 55609, 198, 1378, 18662, 24489, 1445, 62514, 8, 1389, 198, 751, 659, 4952, 15417, 1445, 565, 311, 16767, 323, 471, 659, 627, 2164, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.base.TracerException.html
79e5928df704-0
langchain.callbacks.manager.tracing_enabled¶ langchain.callbacks.manager.tracing_enabled(session_name: str = 'default') → Generator[TracerSessionV1, None, None][source]¶ Get the Deprecated LangChainTracer in a context manager. Parameters session_name (str, optional) – The name of the session. Defaults to “default”. Returns The LangChainTracer session. Return type TracerSessionV1 Example >>> with tracing_enabled() as session: ... # Use the LangChainTracer session
[ 5317, 8995, 72134, 33915, 5543, 4628, 18721, 55609, 198, 5317, 8995, 72134, 33915, 5543, 4628, 18721, 16663, 1292, 25, 610, 284, 364, 2309, 873, 11651, 29458, 58, 1305, 9779, 5396, 53, 16, 11, 2290, 11, 2290, 1483, 2484, 60, 55609, 198, 1991, 279, 85016, 23272, 19368, 1305, 9779, 304, 264, 2317, 6783, 627, 9905, 198, 6045, 1292, 320, 496, 11, 10309, 8, 1389, 578, 836, 315, 279, 3882, 627, 16672, 311, 1054, 2309, 863, 627, 16851, 198, 791, 23272, 19368, 1305, 9779, 3882, 627, 5715, 955, 198, 1305, 9779, 5396, 53, 16, 198, 13617, 198, 20761, 449, 46515, 18721, 368, 439, 3882, 512, 1131, 257, 674, 5560, 279, 23272, 19368, 1305, 9779, 3882 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.tracing_enabled.html
5da8a1b382b8-0
langchain.callbacks.clearml_callback.import_clearml¶ langchain.callbacks.clearml_callback.import_clearml() → Any[source]¶ Import the clearml python package and raise an error if it is not installed.
[ 5317, 8995, 72134, 7578, 1029, 12802, 35997, 22564, 1029, 55609, 198, 5317, 8995, 72134, 7578, 1029, 12802, 35997, 22564, 1029, 368, 11651, 5884, 76747, 60, 55609, 198, 11772, 279, 2867, 1029, 10344, 6462, 323, 4933, 459, 1493, 422, 433, 374, 539, 10487, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.clearml_callback.import_clearml.html
d874c3997210-0
langchain.callbacks.streamlit.streamlit_callback_handler.LLMThoughtState¶ class langchain.callbacks.streamlit.streamlit_callback_handler.LLMThoughtState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶ Bases: Enum Attributes THINKING RUNNING_TOOL COMPLETE COMPLETE = 'COMPLETE'¶ RUNNING_TOOL = 'RUNNING_TOOL'¶ THINKING = 'THINKING'¶
[ 5317, 8995, 72134, 15307, 32735, 15307, 32735, 12802, 10393, 1236, 11237, 85269, 1423, 55609, 198, 1058, 8859, 8995, 72134, 15307, 32735, 15307, 32735, 12802, 10393, 1236, 11237, 85269, 1423, 3764, 11, 5144, 5980, 11, 12039, 4793, 5980, 11, 5965, 609, 5980, 11, 955, 5980, 11, 1212, 28, 16, 11, 19254, 5980, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 14416, 198, 10738, 198, 3701, 11898, 1753, 198, 48490, 30971, 58288, 198, 83069, 198, 83069, 284, 364, 83069, 6, 55609, 198, 48490, 30971, 58288, 284, 364, 48490, 30971, 58288, 6, 55609, 198, 3701, 11898, 1753, 284, 364, 3701, 11898, 1753, 6, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streamlit.streamlit_callback_handler.LLMThoughtState.html
11badeddf9a8-0
langchain.callbacks.base.BaseCallbackHandler¶ class langchain.callbacks.base.BaseCallbackHandler[source]¶ Bases: LLMManagerMixin, ChainManagerMixin, ToolManagerMixin, RetrieverManagerMixin, CallbackManagerMixin, RunManagerMixin Base callback handler that can be used to handle callbacks from langchain. Methods __init__() on_agent_action(action, *, run_id[, ...]) Run on agent action. on_agent_finish(finish, *, run_id[, ...]) Run on agent end. on_chain_end(outputs, *, run_id[, parent_run_id]) Run when chain ends running. on_chain_error(error, *, run_id[, parent_run_id]) Run when chain errors. on_chain_start(serialized, inputs, *, run_id) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, *, run_id[, parent_run_id]) Run when LLM ends running. on_llm_error(error, *, run_id[, parent_run_id]) Run when LLM errors. on_llm_new_token(token, *, run_id[, ...]) Run on new LLM token. on_llm_start(serialized, prompts, *, run_id) Run when LLM starts running. on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running.
[ 5317, 8995, 72134, 9105, 13316, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 9105, 13316, 7646, 3126, 76747, 60, 55609, 198, 33, 2315, 25, 445, 11237, 2087, 39556, 11, 29625, 2087, 39556, 11, 13782, 2087, 39556, 11, 10608, 462, 2099, 2087, 39556, 11, 23499, 2087, 39556, 11, 6588, 2087, 39556, 198, 4066, 4927, 7158, 430, 649, 387, 1511, 311, 3790, 27777, 505, 8859, 8995, 627, 18337, 198, 565, 2381, 33716, 263, 26814, 8090, 15665, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 502, 445, 11237, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.BaseCallbackHandler.html
11badeddf9a8-1
Run when Retriever starts running. on_text(text, *, run_id[, parent_run_id]) Run on arbitrary text. on_tool_end(output, *, run_id[, parent_run_id]) Run when tool ends running. on_tool_error(error, *, run_id[, parent_run_id]) Run when tool errors. on_tool_start(serialized, input_str, *, run_id) Run when tool starts running. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline on_agent_action(action: AgentAction, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent action. on_agent_finish(finish: AgentFinish, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent end. on_chain_end(outputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when chain ends running. on_chain_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when chain errors. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when chain starts running.
[ 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 5507, 8638, 4401, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.BaseCallbackHandler.html
11badeddf9a8-2
Run when chain starts running. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when LLM ends running. on_llm_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when LLM errors. on_llm_new_token(token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on new LLM token. Only available when streaming is enabled. on_llm_start(serialized: Dict[str, Any], prompts: List[str], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when LLM starts running. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶
[ 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 502, 445, 11237, 4037, 13, 8442, 2561, 994, 17265, 374, 9147, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.BaseCallbackHandler.html
11badeddf9a8-3
Run when Retriever starts running. on_text(text: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on arbitrary text. on_tool_end(output: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when tool ends running. on_tool_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when tool errors. on_tool_start(serialized: Dict[str, Any], input_str: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when tool starts running. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.BaseCallbackHandler.html
37ab6914f384-0
langchain.callbacks.mlflow_callback.import_mlflow¶ langchain.callbacks.mlflow_callback.import_mlflow() → Any[source]¶ Import the mlflow python package and raise an error if it is not installed.
[ 5317, 8995, 72134, 58509, 5072, 12802, 35997, 77667, 5072, 55609, 198, 5317, 8995, 72134, 58509, 5072, 12802, 35997, 77667, 5072, 368, 11651, 5884, 76747, 60, 55609, 198, 11772, 279, 16116, 5072, 10344, 6462, 323, 4933, 459, 1493, 422, 433, 374, 539, 10487, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.mlflow_callback.import_mlflow.html
ec4477aec77b-0
langchain.callbacks.manager.tracing_v2_enabled¶ langchain.callbacks.manager.tracing_v2_enabled(project_name: Optional[str] = None, *, example_id: Optional[Union[UUID, str]] = None) → Generator[None, None, None][source]¶ Instruct LangChain to log all runs in context to LangSmith. Parameters project_name (str, optional) – The name of the project. Defaults to “default”. example_id (str or UUID, optional) – The ID of the example. Defaults to None. Returns None Example >>> with tracing_v2_enabled(): ... # LangChain code will automatically be traced
[ 5317, 8995, 72134, 33915, 5543, 4628, 2325, 17, 18721, 55609, 198, 5317, 8995, 72134, 33915, 5543, 4628, 2325, 17, 18721, 21855, 1292, 25, 12536, 17752, 60, 284, 2290, 11, 12039, 3187, 851, 25, 12536, 58, 33758, 58, 25786, 11, 610, 5163, 284, 2290, 8, 11651, 29458, 58, 4155, 11, 2290, 11, 2290, 1483, 2484, 60, 55609, 198, 644, 1257, 23272, 19368, 311, 1515, 682, 8640, 304, 2317, 311, 23272, 42985, 627, 9905, 198, 5094, 1292, 320, 496, 11, 10309, 8, 1389, 578, 836, 315, 279, 2447, 627, 16672, 311, 1054, 2309, 863, 627, 8858, 851, 320, 496, 477, 24628, 11, 10309, 8, 1389, 578, 3110, 315, 279, 3187, 627, 16672, 311, 2290, 627, 16851, 198, 4155, 198, 13617, 198, 20761, 449, 46515, 2325, 17, 18721, 4019, 1131, 257, 674, 23272, 19368, 2082, 690, 9651, 387, 51400 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.manager.tracing_v2_enabled.html
925014be33de-0
langchain.callbacks.openai_info.OpenAICallbackHandler¶ class langchain.callbacks.openai_info.OpenAICallbackHandler[source]¶ Bases: BaseCallbackHandler Callback Handler that tracks OpenAI info. Methods __init__() on_agent_action(action, *, run_id[, ...]) Run on agent action. on_agent_finish(finish, *, run_id[, ...]) Run on agent end. on_chain_end(outputs, *, run_id[, parent_run_id]) Run when chain ends running. on_chain_error(error, *, run_id[, parent_run_id]) Run when chain errors. on_chain_start(serialized, inputs, *, run_id) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, **kwargs) Collect token usage. on_llm_error(error, *, run_id[, parent_run_id]) Run when LLM errors. on_llm_new_token(token, **kwargs) Print out the token. on_llm_start(serialized, prompts, **kwargs) Print out the prompts. on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, *, run_id[, parent_run_id]) Run on arbitrary text. on_tool_end(output, *, run_id[, parent_run_id]) Run when tool ends running.
[ 5317, 8995, 72134, 5949, 2192, 3186, 13250, 32, 1341, 3503, 3126, 55609, 198, 1058, 8859, 8995, 72134, 5949, 2192, 3186, 13250, 32, 1341, 3503, 3126, 76747, 60, 55609, 198, 33, 2315, 25, 5464, 7646, 3126, 198, 7646, 20549, 430, 14242, 5377, 15836, 3630, 627, 18337, 198, 565, 2381, 33716, 263, 26814, 8090, 15665, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 48604, 4037, 10648, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 9171, 704, 279, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 9171, 704, 279, 52032, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 10548, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.openai_info.OpenAICallbackHandler.html
925014be33de-1
Run when tool ends running. on_tool_error(error, *, run_id[, parent_run_id]) Run when tool errors. on_tool_start(serialized, input_str, *, run_id) Run when tool starts running. Attributes always_verbose Whether to call verbose callbacks even if verbose is False. completion_tokens ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. prompt_tokens raise_error run_inline successful_requests total_cost total_tokens on_agent_action(action: AgentAction, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent action. on_agent_finish(finish: AgentFinish, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent end. on_chain_end(outputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when chain ends running. on_chain_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when chain errors. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when chain starts running.
[ 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 5507, 8638, 4401, 627, 10738, 198, 33222, 69021, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 44412, 29938, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 41681, 29938, 198, 19223, 4188, 198, 6236, 42971, 198, 32050, 38316, 198, 5143, 16269, 198, 5143, 29938, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.openai_info.OpenAICallbackHandler.html
925014be33de-2
Run when chain starts running. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ Collect token usage. on_llm_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when LLM errors. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Print out the token. on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → None[source]¶ Print out the prompts. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_text(text: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on arbitrary text.
[ 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 48604, 4037, 10648, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 9171, 704, 279, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 9171, 704, 279, 52032, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 25142, 1495, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.openai_info.OpenAICallbackHandler.html
925014be33de-3
Run on arbitrary text. on_tool_end(output: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when tool ends running. on_tool_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when tool errors. on_tool_start(serialized: Dict[str, Any], input_str: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when tool starts running. property always_verbose: bool¶ Whether to call verbose callbacks even if verbose is False. completion_tokens: int = 0¶ property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. prompt_tokens: int = 0¶ raise_error: bool = False¶ run_inline: bool = False¶ successful_requests: int = 0¶ total_cost: float = 0.0¶ total_tokens: int = 0¶
[ 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 3784, 2744, 69021, 25, 1845, 55609, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 44412, 29938, 25, 528, 284, 220, 15, 55609, 198, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 41681, 29938, 25, 528, 284, 220, 15, 55609, 198, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609, 198, 32050, 38316, 25, 528, 284, 220, 15, 55609, 198, 5143, 16269, 25, 2273, 284, 220, 15, 13, 15, 55609, 198, 5143, 29938, 25, 528, 284, 220, 15, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.openai_info.OpenAICallbackHandler.html
ce0aa5a50e3b-0
langchain.callbacks.tracers.evaluation.EvaluatorCallbackHandler¶ class langchain.callbacks.tracers.evaluation.EvaluatorCallbackHandler(evaluators: Sequence[RunEvaluator], max_workers: Optional[int] = None, client: Optional[LangChainPlusClient] = None, example_id: Optional[Union[UUID, str]] = None, **kwargs: Any)[source]¶ Bases: BaseTracer A tracer that runs a run evaluator whenever a run is persisted. Parameters evaluators (Sequence[RunEvaluator]) – The run evaluators to apply to all top level runs. max_workers (int, optional) – The maximum number of worker threads to use for running the evaluators. If not specified, it will default to the number of evaluators. client (LangChainPlusClient, optional) – The LangChainPlusClient instance to use for evaluating the runs. If not specified, a new instance will be created. example_id (Union[UUID, str], optional) – The example ID to be associated with the runs. example_id¶ The example ID associated with the runs. Type Union[UUID, None] client¶ The LangChainPlusClient instance used for evaluating the runs. Type LangChainPlusClient evaluators¶ The sequence of run evaluators to be executed. Type Sequence[RunEvaluator] executor¶ The thread pool executor used for running the evaluators. Type ThreadPoolExecutor futures¶ The set of futures representing the running evaluators. Type Set[Future] Methods __init__(evaluators[, max_workers, client, ...]) on_agent_action(action, *, run_id[, ...]) Run on agent action. on_agent_finish(finish, *, run_id[, ...]) Run on agent end.
[ 5317, 8995, 72134, 5543, 73797, 1770, 24756, 5253, 53489, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 5543, 73797, 1770, 24756, 5253, 53489, 7646, 3126, 2069, 26591, 3046, 25, 29971, 58, 6869, 90142, 1145, 1973, 44657, 25, 12536, 19155, 60, 284, 2290, 11, 3016, 25, 12536, 58, 27317, 19368, 22560, 3032, 60, 284, 2290, 11, 3187, 851, 25, 12536, 58, 33758, 58, 25786, 11, 610, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 1305, 9779, 198, 32, 65406, 430, 8640, 264, 1629, 70910, 15716, 264, 1629, 374, 54095, 627, 9905, 198, 14504, 84, 3046, 320, 14405, 58, 6869, 90142, 2526, 1389, 578, 1629, 19886, 3046, 311, 3881, 311, 682, 1948, 2237, 8640, 627, 2880, 44657, 320, 396, 11, 10309, 8, 1389, 578, 7340, 1396, 315, 12128, 14906, 311, 1005, 369, 4401, 279, 19886, 3046, 627, 2746, 539, 5300, 11, 433, 690, 1670, 311, 279, 1396, 315, 19886, 3046, 627, 3045, 320, 27317, 19368, 22560, 3032, 11, 10309, 8, 1389, 578, 23272, 19368, 22560, 3032, 2937, 311, 1005, 369, 38663, 279, 8640, 627, 2746, 539, 5300, 11, 264, 502, 2937, 690, 387, 3549, 627, 8858, 851, 320, 33758, 58, 25786, 11, 610, 1145, 10309, 8, 1389, 578, 3187, 3110, 311, 387, 5938, 449, 279, 8640, 627, 8858, 851, 55609, 198, 791, 3187, 3110, 5938, 449, 279, 8640, 627, 941, 198, 33758, 58, 25786, 11, 2290, 933, 3045, 55609, 198, 791, 23272, 19368, 22560, 3032, 2937, 1511, 369, 38663, 279, 8640, 627, 941, 198, 27317, 19368, 22560, 3032, 198, 14504, 84, 3046, 55609, 198, 791, 8668, 315, 1629, 19886, 3046, 311, 387, 16070, 627, 941, 198, 14405, 58, 6869, 90142, 933, 81887, 55609, 198, 791, 4617, 7463, 32658, 1511, 369, 4401, 279, 19886, 3046, 627, 941, 198, 68137, 26321, 198, 69, 75706, 55609, 198, 791, 743, 315, 37923, 14393, 279, 4401, 19886, 3046, 627, 941, 198, 1681, 58, 25184, 933, 18337, 198, 565, 2381, 3889, 14504, 84, 3046, 38372, 4194, 2880, 44657, 11, 4194, 3045, 11, 4194, 1131, 2608, 263, 26814, 8090, 15665, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 842, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.evaluation.EvaluatorCallbackHandler.html
ce0aa5a50e3b-1
Run on agent end. on_chain_end(outputs, *, run_id, **kwargs) End a trace for a chain run. on_chain_error(error, *, run_id, **kwargs) Handle an error for a chain run. on_chain_start(serialized, inputs, *, run_id) Start a trace for a chain run. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, *, run_id, **kwargs) End a trace for an LLM run. on_llm_error(error, *, run_id, **kwargs) Handle an error for an LLM run. on_llm_new_token(token, *, run_id[, ...]) Run on new LLM token. on_llm_start(serialized, prompts, *, run_id) Start a trace for an LLM run. on_retriever_end(documents, *, run_id, **kwargs) Run when Retriever ends running. on_retriever_error(error, *, run_id, **kwargs) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, *, run_id[, parent_run_id]) Run on arbitrary text. on_tool_end(output, *, run_id, **kwargs) End a trace for a tool run. on_tool_error(error, *, run_id, **kwargs) Handle an error for a tool run. on_tool_start(serialized, input_str, *, run_id) Start a trace for a tool run. wait_for_futures()
[ 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 3812, 264, 11917, 369, 264, 8957, 1629, 627, 263, 31683, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 7144, 459, 1493, 369, 264, 8957, 1629, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 12594, 4194, 6236, 851, 340, 3563, 264, 11917, 369, 264, 8957, 1629, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 3812, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 7144, 459, 1493, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 502, 445, 11237, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 12594, 4194, 6236, 851, 340, 3563, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 3812, 264, 11917, 369, 264, 5507, 1629, 627, 263, 23627, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 11, 4194, 334, 9872, 340, 7144, 459, 1493, 369, 264, 5507, 1629, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 12594, 4194, 6236, 851, 340, 3563, 264, 11917, 369, 264, 5507, 1629, 627, 11748, 5595, 766, 75706, 368 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.evaluation.EvaluatorCallbackHandler.html
ce0aa5a50e3b-2
Start a trace for a tool run. wait_for_futures() Wait for all futures to complete. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. name raise_error run_inline on_agent_action(action: AgentAction, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent action. on_agent_finish(finish: AgentFinish, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent end. on_chain_end(outputs: Dict[str, Any], *, run_id: UUID, **kwargs: Any) → None¶ End a trace for a chain run. on_chain_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Handle an error for a chain run. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], *, run_id: UUID, tags: Optional[List[str]] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Start a trace for a chain run. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, *, run_id: UUID, **kwargs: Any) → None¶
[ 3563, 264, 11917, 369, 264, 5507, 1629, 627, 11748, 5595, 766, 75706, 746, 14524, 369, 682, 37923, 311, 4686, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 609, 198, 19223, 4188, 198, 6236, 42971, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3812, 264, 11917, 369, 264, 8957, 1629, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 7144, 459, 1493, 369, 264, 8957, 1629, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3563, 264, 11917, 369, 264, 8957, 1629, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.evaluation.EvaluatorCallbackHandler.html
ce0aa5a50e3b-3
End a trace for an LLM run. on_llm_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Handle an error for an LLM run. on_llm_new_token(token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on new LLM token. Only available when streaming is enabled. on_llm_start(serialized: Dict[str, Any], prompts: List[str], *, run_id: UUID, tags: Optional[List[str]] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Start a trace for an LLM run. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, **kwargs: Any) → None¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Run when Retriever starts running. on_text(text: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on arbitrary text. on_tool_end(output: str, *, run_id: UUID, **kwargs: Any) → None¶ End a trace for a tool run. on_tool_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, **kwargs: Any) → None¶ Handle an error for a tool run.
[ 3812, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 7144, 459, 1493, 369, 459, 445, 11237, 1629, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 502, 445, 11237, 4037, 13, 8442, 2561, 994, 17265, 374, 9147, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 12039, 1629, 851, 25, 24628, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3563, 264, 11917, 369, 459, 445, 11237, 1629, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3812, 264, 11917, 369, 264, 5507, 1629, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 7144, 459, 1493, 369, 264, 5507, 1629, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.evaluation.EvaluatorCallbackHandler.html
ce0aa5a50e3b-4
Handle an error for a tool run. on_tool_start(serialized: Dict[str, Any], input_str: str, *, run_id: UUID, tags: Optional[List[str]] = None, parent_run_id: Optional[UUID] = None, **kwargs: Any) → None¶ Start a trace for a tool run. wait_for_futures() → None[source]¶ Wait for all futures to complete. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. name = 'evaluator_callback_handler'¶ raise_error: bool = False¶ run_inline: bool = False¶ run_map: Dict[str, Run]¶
[ 7144, 459, 1493, 369, 264, 5507, 1629, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 55609, 198, 3563, 264, 11917, 369, 264, 5507, 1629, 627, 11748, 5595, 766, 75706, 368, 11651, 2290, 76747, 60, 55609, 198, 14524, 369, 682, 37923, 311, 4686, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 609, 284, 364, 14504, 46262, 12802, 10393, 6, 55609, 198, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609, 198, 6236, 5489, 25, 30226, 17752, 11, 6588, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.evaluation.EvaluatorCallbackHandler.html
be75dccdf176-0
langchain.callbacks.arthur_callback.ArthurCallbackHandler¶ class langchain.callbacks.arthur_callback.ArthurCallbackHandler(arthur_model: ArthurModel)[source]¶ Bases: BaseCallbackHandler Callback Handler that logs to Arthur platform. Arthur helps enterprise teams optimize model operations and performance at scale. The Arthur API tracks model performance, explainability, and fairness across tabular, NLP, and CV models. Our API is model- and platform-agnostic, and continuously scales with complex and dynamic enterprise needs. To learn more about Arthur, visit our website at https://www.arthur.ai/ or read the Arthur docs at https://docs.arthur.ai/ Initialize callback handler. Methods __init__(arthur_model) Initialize callback handler. from_credentials(model_id[, arthur_url, ...]) Initialize callback handler from Arthur credentials. on_agent_action(action, **kwargs) Do nothing when agent takes a specific action. on_agent_finish(finish, **kwargs) Do nothing on_chain_end(outputs, **kwargs) On chain end, do nothing. on_chain_error(error, **kwargs) Do nothing when LLM chain outputs an error. on_chain_start(serialized, inputs, **kwargs) On chain start, do nothing. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, **kwargs) On LLM end, send data to Arthur. on_llm_error(error, **kwargs) Do nothing when LLM outputs an error. on_llm_new_token(token, **kwargs) On new token, pass. on_llm_start(serialized, prompts, **kwargs) On LLM start, save the input prompts
[ 5317, 8995, 72134, 17126, 22173, 12802, 72987, 22173, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 17126, 22173, 12802, 72987, 22173, 7646, 3126, 38644, 22173, 5156, 25, 28686, 1747, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 7646, 3126, 198, 7646, 20549, 430, 18929, 311, 28686, 5452, 627, 60762, 8779, 20790, 7411, 30536, 1646, 7677, 198, 438, 5178, 520, 5569, 13, 578, 28686, 5446, 14242, 1646, 198, 62344, 11, 10552, 2968, 11, 323, 51841, 4028, 5769, 1299, 345, 45, 12852, 11, 323, 14499, 4211, 13, 5751, 5446, 374, 1646, 12, 323, 5452, 12, 12219, 345, 438, 31978, 29505, 449, 6485, 323, 8915, 20790, 3966, 627, 1271, 4048, 810, 922, 28686, 11, 4034, 1057, 3997, 520, 198, 2485, 1129, 2185, 17126, 22173, 41483, 14, 477, 1373, 279, 28686, 27437, 520, 198, 2485, 1129, 14452, 17126, 22173, 41483, 6018, 10130, 4927, 7158, 627, 18337, 198, 565, 2381, 3889, 277, 22173, 5156, 340, 10130, 4927, 7158, 627, 1527, 48496, 7790, 851, 38372, 4194, 277, 22173, 2975, 11, 4194, 1131, 2608, 10130, 4927, 7158, 505, 28686, 16792, 627, 263, 26814, 8090, 15665, 11, 4194, 334, 9872, 340, 5519, 4400, 994, 8479, 5097, 264, 3230, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 334, 9872, 340, 5519, 4400, 198, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 340, 1966, 8957, 842, 11, 656, 4400, 627, 263, 31683, 4188, 6524, 11, 4194, 334, 9872, 340, 5519, 4400, 994, 445, 11237, 8957, 16674, 459, 1493, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 334, 9872, 340, 1966, 8957, 1212, 11, 656, 4400, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 1966, 445, 11237, 842, 11, 3708, 828, 311, 28686, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 5519, 4400, 994, 445, 11237, 16674, 459, 1493, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 1966, 502, 4037, 11, 1522, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 1966, 445, 11237, 1212, 11, 3665, 279, 1988, 52032 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.arthur_callback.ArthurCallbackHandler.html
be75dccdf176-1
On LLM start, save the input prompts on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, **kwargs) Do nothing on_tool_end(output[, observation_prefix, ...]) Do nothing when tool ends. on_tool_error(error, **kwargs) Do nothing when tool outputs an error. on_tool_start(serialized, input_str, **kwargs) Do nothing when tool starts. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline classmethod from_credentials(model_id: str, arthur_url: Optional[str] = 'https://app.arthur.ai', arthur_login: Optional[str] = None, arthur_password: Optional[str] = None) → ArthurCallbackHandler[source]¶ Initialize callback handler from Arthur credentials. Parameters model_id (str) – The ID of the arthur model to log to. arthur_url (str, optional) – The URL of the Arthur instance to log to. Defaults to “https://app.arthur.ai”. arthur_login (str, optional) – The login to use to connect to Arthur. Defaults to None. arthur_password (str, optional) – The password to use to connect to Arthur. Defaults to None. Returns The initialized callback handler. Return type ArthurCallbackHandler
[ 1966, 445, 11237, 1212, 11, 3665, 279, 1988, 52032, 198, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 5519, 4400, 198, 263, 23627, 6345, 11304, 38372, 4194, 79060, 14301, 11, 4194, 1131, 2608, 5519, 4400, 994, 5507, 10548, 627, 263, 23627, 4188, 6524, 11, 4194, 334, 9872, 340, 5519, 4400, 994, 5507, 16674, 459, 1493, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 334, 9872, 340, 5519, 4400, 994, 5507, 8638, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 27853, 505, 48496, 7790, 851, 25, 610, 11, 802, 22173, 2975, 25, 12536, 17752, 60, 284, 364, 2485, 1129, 680, 17126, 22173, 41483, 518, 802, 22173, 13995, 25, 12536, 17752, 60, 284, 2290, 11, 802, 22173, 10330, 25, 12536, 17752, 60, 284, 2290, 8, 11651, 28686, 7646, 3126, 76747, 60, 55609, 198, 10130, 4927, 7158, 505, 28686, 16792, 627, 9905, 198, 2590, 851, 320, 496, 8, 1389, 578, 3110, 315, 279, 802, 22173, 1646, 311, 1515, 311, 627, 277, 22173, 2975, 320, 496, 11, 10309, 8, 1389, 578, 5665, 315, 279, 28686, 2937, 311, 1515, 311, 627, 16672, 311, 1054, 2485, 1129, 680, 17126, 22173, 41483, 863, 627, 277, 22173, 13995, 320, 496, 11, 10309, 8, 1389, 578, 5982, 311, 1005, 311, 4667, 311, 28686, 627, 16672, 311, 2290, 627, 277, 22173, 10330, 320, 496, 11, 10309, 8, 1389, 578, 3636, 311, 1005, 311, 4667, 311, 198, 60762, 13, 37090, 311, 2290, 627, 16851, 198, 791, 17719, 4927, 7158, 627, 5715, 955, 198, 60762, 7646, 3126 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.arthur_callback.ArthurCallbackHandler.html
be75dccdf176-2
Returns The initialized callback handler. Return type ArthurCallbackHandler on_agent_action(action: AgentAction, **kwargs: Any) → Any[source]¶ Do nothing when agent takes a specific action. on_agent_finish(finish: AgentFinish, **kwargs: Any) → None[source]¶ Do nothing on_chain_end(outputs: Dict[str, Any], **kwargs: Any) → None[source]¶ On chain end, do nothing. on_chain_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Do nothing when LLM chain outputs an error. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any) → None[source]¶ On chain start, do nothing. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ On LLM end, send data to Arthur. on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Do nothing when LLM outputs an error. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ On new token, pass. on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → None[source]¶ On LLM start, save the input prompts on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶
[ 16851, 198, 791, 17719, 4927, 7158, 627, 5715, 955, 198, 60762, 7646, 3126, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 5519, 4400, 994, 8479, 5097, 264, 3230, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 198, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 1966, 8957, 842, 11, 656, 4400, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 994, 445, 11237, 8957, 16674, 459, 1493, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 1966, 8957, 1212, 11, 656, 4400, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 1966, 445, 11237, 842, 11, 3708, 828, 311, 28686, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 994, 445, 11237, 16674, 459, 1493, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 1966, 502, 4037, 11, 1522, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 1966, 445, 11237, 1212, 11, 3665, 279, 1988, 52032, 198, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.arthur_callback.ArthurCallbackHandler.html
be75dccdf176-3
Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_text(text: str, **kwargs: Any) → None[source]¶ Do nothing on_tool_end(output: str, observation_prefix: Optional[str] = None, llm_prefix: Optional[str] = None, **kwargs: Any) → None[source]¶ Do nothing when tool ends. on_tool_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Do nothing when tool outputs an error. on_tool_start(serialized: Dict[str, Any], input_str: str, **kwargs: Any) → None[source]¶ Do nothing when tool starts. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 198, 263, 23627, 6345, 11304, 25, 610, 11, 22695, 14301, 25, 12536, 17752, 60, 284, 2290, 11, 9507, 76, 14301, 25, 12536, 17752, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 994, 5507, 10548, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 994, 5507, 16674, 459, 1493, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 994, 5507, 8638, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.arthur_callback.ArthurCallbackHandler.html
a2b1f3e1c671-0
langchain.callbacks.base.BaseCallbackManager¶ class langchain.callbacks.base.BaseCallbackManager(handlers: List[BaseCallbackHandler], inheritable_handlers: Optional[List[BaseCallbackHandler]] = None, parent_run_id: Optional[UUID] = None, *, tags: Optional[List[str]] = None, inheritable_tags: Optional[List[str]] = None)[source]¶ Bases: CallbackManagerMixin Base callback manager that can be used to handle callbacks from LangChain. Initialize callback manager. Methods __init__(handlers[, inheritable_handlers, ...]) Initialize callback manager. add_handler(handler[, inherit]) Add a handler to the callback manager. add_tags(tags[, inherit]) on_chain_start(serialized, inputs, *, run_id) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_start(serialized, prompts, *, run_id) Run when LLM starts running. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_tool_start(serialized, input_str, *, run_id) Run when tool starts running. remove_handler(handler) Remove a handler from the callback manager. remove_tags(tags) set_handler(handler[, inherit]) Set handler as the only handler on the callback manager. set_handlers(handlers[, inherit]) Set handlers as the only handlers on the callback manager. Attributes is_async Whether the callback manager is async. add_handler(handler: BaseCallbackHandler, inherit: bool = True) → None[source]¶ Add a handler to the callback manager. add_tags(tags: List[str], inherit: bool = True) → None[source]¶
[ 5317, 8995, 72134, 9105, 13316, 7646, 2087, 55609, 198, 1058, 8859, 8995, 72134, 9105, 13316, 7646, 2087, 64311, 9438, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 481, 58137, 25, 12536, 53094, 58, 4066, 7646, 3126, 5163, 284, 2290, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 12039, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 24683, 481, 16735, 25, 12536, 53094, 17752, 5163, 284, 2290, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 23499, 2087, 39556, 198, 4066, 4927, 6783, 430, 649, 387, 1511, 311, 3790, 27777, 505, 23272, 19368, 627, 10130, 4927, 6783, 627, 18337, 198, 565, 2381, 3889, 56727, 38372, 4194, 13119, 481, 58137, 11, 4194, 1131, 2608, 10130, 4927, 6783, 627, 723, 10393, 37614, 38372, 4194, 13119, 2608, 2261, 264, 7158, 311, 279, 4927, 6783, 627, 723, 16735, 58313, 38372, 4194, 13119, 2608, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 5507, 8638, 4401, 627, 5514, 10393, 37614, 340, 13319, 264, 7158, 505, 279, 4927, 6783, 627, 5514, 16735, 58313, 340, 751, 10393, 37614, 38372, 4194, 13119, 2608, 1681, 7158, 439, 279, 1193, 7158, 389, 279, 4927, 6783, 627, 751, 58137, 64311, 9438, 38372, 4194, 13119, 2608, 1681, 25050, 439, 279, 1193, 25050, 389, 279, 4927, 6783, 627, 10738, 198, 285, 29446, 198, 25729, 279, 4927, 6783, 374, 3393, 627, 723, 10393, 37614, 25, 5464, 7646, 3126, 11, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 76747, 60, 55609, 198, 2261, 264, 7158, 311, 279, 4927, 6783, 627, 723, 16735, 58313, 25, 1796, 17752, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 76747, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.BaseCallbackManager.html
a2b1f3e1c671-1
add_tags(tags: List[str], inherit: bool = True) → None[source]¶ on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when chain starts running. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_start(serialized: Dict[str, Any], prompts: List[str], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when LLM starts running. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_tool_start(serialized: Dict[str, Any], input_str: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when tool starts running. remove_handler(handler: BaseCallbackHandler) → None[source]¶ Remove a handler from the callback manager. remove_tags(tags: List[str]) → None[source]¶ set_handler(handler: BaseCallbackHandler, inherit: bool = True) → None[source]¶ Set handler as the only handler on the callback manager. set_handlers(handlers: List[BaseCallbackHandler], inherit: bool = True) → None[source]¶
[ 723, 16735, 58313, 25, 1796, 17752, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 76747, 60, 55609, 198, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 5514, 10393, 37614, 25, 5464, 7646, 3126, 8, 11651, 2290, 76747, 60, 55609, 198, 13319, 264, 7158, 505, 279, 4927, 6783, 627, 5514, 16735, 58313, 25, 1796, 17752, 2526, 11651, 2290, 76747, 60, 55609, 198, 751, 10393, 37614, 25, 5464, 7646, 3126, 11, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 76747, 60, 55609, 198, 1681, 7158, 439, 279, 1193, 7158, 389, 279, 4927, 6783, 627, 751, 58137, 64311, 9438, 25, 1796, 58, 4066, 7646, 3126, 1145, 24683, 25, 1845, 284, 3082, 8, 11651, 2290, 76747, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.BaseCallbackManager.html
a2b1f3e1c671-2
Set handlers as the only handlers on the callback manager. property is_async: bool¶ Whether the callback manager is async.
[ 1681, 25050, 439, 279, 1193, 25050, 389, 279, 4927, 6783, 627, 3784, 374, 29446, 25, 1845, 55609, 198, 25729, 279, 4927, 6783, 374, 3393, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.base.BaseCallbackManager.html
2b6fc6624ce0-0
langchain.callbacks.whylabs_callback.WhyLabsCallbackHandler¶ class langchain.callbacks.whylabs_callback.WhyLabsCallbackHandler(logger: Logger)[source]¶ Bases: BaseCallbackHandler WhyLabs CallbackHandler. Initiate the rolling logger Methods __init__(logger) Initiate the rolling logger close() flush() from_params(*[, api_key, org_id, ...]) Instantiate whylogs Logger from params. on_agent_action(action[, color]) Do nothing. on_agent_finish(finish[, color]) Run on agent end. on_chain_end(outputs, **kwargs) Do nothing. on_chain_error(error, **kwargs) Do nothing. on_chain_start(serialized, inputs, **kwargs) Do nothing. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, **kwargs) Pass the generated response to the logger. on_llm_error(error, **kwargs) Do nothing. on_llm_new_token(token, **kwargs) Do nothing. on_llm_start(serialized, prompts, **kwargs) Pass the input prompts to the logger on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, **kwargs) Do nothing. on_tool_end(output[, color, ...]) Do nothing. on_tool_error(error, **kwargs) Do nothing.
[ 5317, 8995, 72134, 47836, 4010, 3518, 12802, 1196, 8671, 43, 3518, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 47836, 4010, 3518, 12802, 1196, 8671, 43, 3518, 7646, 3126, 38933, 25, 9704, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 7646, 3126, 198, 10445, 43, 3518, 23499, 3126, 627, 3888, 6629, 279, 20700, 6050, 198, 18337, 198, 565, 2381, 3889, 9985, 340, 3888, 6629, 279, 20700, 6050, 198, 5669, 746, 22402, 746, 1527, 6887, 4163, 38372, 4194, 2113, 3173, 11, 4194, 1813, 851, 11, 4194, 1131, 2608, 81651, 3249, 22856, 9704, 505, 3712, 627, 263, 26814, 8090, 15665, 38372, 4194, 3506, 2608, 5519, 4400, 627, 263, 26814, 44080, 968, 18675, 38372, 4194, 3506, 2608, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 263, 31683, 4188, 6524, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 12465, 279, 8066, 2077, 311, 279, 6050, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 12465, 279, 1988, 52032, 311, 279, 6050, 198, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 263, 23627, 6345, 11304, 38372, 4194, 3506, 11, 4194, 1131, 2608, 5519, 4400, 627, 263, 23627, 4188, 6524, 11, 4194, 334, 9872, 340, 5519, 4400, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.whylabs_callback.WhyLabsCallbackHandler.html
2b6fc6624ce0-1
Do nothing. on_tool_error(error, **kwargs) Do nothing. on_tool_start(serialized, input_str, **kwargs) Do nothing. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline close() → None[source]¶ flush() → None[source]¶ classmethod from_params(*, api_key: Optional[str] = None, org_id: Optional[str] = None, dataset_id: Optional[str] = None, sentiment: bool = False, toxicity: bool = False, themes: bool = False) → Logger[source]¶ Instantiate whylogs Logger from params. Parameters api_key (Optional[str]) – WhyLabs API key. Optional because the preferred way to specify the API key is with environment variable WHYLABS_API_KEY. org_id (Optional[str]) – WhyLabs organization id to write profiles to. If not set must be specified in environment variable WHYLABS_DEFAULT_ORG_ID. dataset_id (Optional[str]) – The model or dataset this callback is gathering telemetry for. If not set must be specified in environment variable WHYLABS_DEFAULT_DATASET_ID. sentiment (bool) – If True will initialize a model to perform sentiment analysis compound score. Defaults to False and will not gather this metric. toxicity (bool) – If True will initialize a model to score toxicity. Defaults to False and will not gather this metric. themes (bool) – If True will initialize a model to calculate distance to configured themes. Defaults to None and will not gather this metric.
[ 5519, 4400, 627, 263, 23627, 4188, 6524, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 334, 9872, 340, 5519, 4400, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 5669, 368, 11651, 2290, 76747, 60, 55609, 198, 22402, 368, 11651, 2290, 76747, 60, 55609, 198, 27853, 505, 6887, 4163, 11, 6464, 3173, 25, 12536, 17752, 60, 284, 2290, 11, 1262, 851, 25, 12536, 17752, 60, 284, 2290, 11, 10550, 851, 25, 12536, 17752, 60, 284, 2290, 11, 27065, 25, 1845, 284, 3641, 11, 58011, 25, 1845, 284, 3641, 11, 22100, 25, 1845, 284, 3641, 8, 11651, 9704, 76747, 60, 55609, 198, 81651, 3249, 22856, 9704, 505, 3712, 627, 9905, 198, 2113, 3173, 320, 15669, 17752, 2526, 1389, 8595, 43, 3518, 5446, 1401, 13, 12536, 1606, 279, 15236, 198, 3195, 311, 14158, 279, 5446, 1401, 374, 449, 4676, 3977, 198, 20484, 56, 20257, 50, 11669, 6738, 627, 1813, 851, 320, 15669, 17752, 2526, 1389, 8595, 43, 3518, 7471, 887, 311, 3350, 21542, 311, 627, 2746, 539, 743, 2011, 387, 5300, 304, 4676, 3977, 198, 20484, 56, 20257, 50, 14131, 20424, 38, 3533, 627, 22090, 851, 320, 15669, 17752, 2526, 1389, 578, 1646, 477, 10550, 420, 4927, 374, 23738, 198, 668, 37058, 369, 13, 1442, 539, 743, 2011, 387, 5300, 304, 4676, 3977, 198, 20484, 56, 20257, 50, 14131, 37447, 62373, 3533, 627, 25526, 3904, 320, 2707, 8, 1389, 1442, 3082, 690, 9656, 264, 1646, 311, 2804, 198, 25526, 3904, 6492, 24549, 5573, 13, 37090, 311, 3641, 323, 690, 539, 9762, 198, 576, 18767, 627, 998, 14668, 488, 320, 2707, 8, 1389, 1442, 3082, 690, 9656, 264, 1646, 311, 5573, 198, 998, 14668, 488, 13, 37090, 311, 3641, 323, 690, 539, 9762, 420, 18767, 627, 41815, 320, 2707, 8, 1389, 1442, 3082, 690, 9656, 264, 1646, 311, 11294, 198, 19909, 311, 20336, 22100, 13, 37090, 311, 2290, 323, 690, 539, 9762, 420, 198, 16282, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.whylabs_callback.WhyLabsCallbackHandler.html
2b6fc6624ce0-2
distance to configured themes. Defaults to None and will not gather this metric. on_agent_action(action: AgentAction, color: Optional[str] = None, **kwargs: Any) → Any[source]¶ Do nothing. on_agent_finish(finish: AgentFinish, color: Optional[str] = None, **kwargs: Any) → None[source]¶ Run on agent end. on_chain_end(outputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Do nothing. on_chain_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Do nothing. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Do nothing. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ Pass the generated response to the logger. on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Do nothing. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Do nothing. on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → None[source]¶ Pass the input prompts to the logger on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever ends running.
[ 19909, 311, 20336, 22100, 13, 37090, 311, 2290, 323, 690, 539, 9762, 420, 198, 16282, 627, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 1933, 25, 12536, 17752, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 1933, 25, 12536, 17752, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 12465, 279, 8066, 2077, 311, 279, 6050, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 12465, 279, 1988, 52032, 311, 279, 6050, 198, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.whylabs_callback.WhyLabsCallbackHandler.html
2b6fc6624ce0-3
Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_text(text: str, **kwargs: Any) → None[source]¶ Do nothing. on_tool_end(output: str, color: Optional[str] = None, observation_prefix: Optional[str] = None, llm_prefix: Optional[str] = None, **kwargs: Any) → None[source]¶ Do nothing. on_tool_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Do nothing. on_tool_start(serialized: Dict[str, Any], input_str: str, **kwargs: Any) → None[source]¶ Do nothing. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 23627, 6345, 11304, 25, 610, 11, 1933, 25, 12536, 17752, 60, 284, 2290, 11, 22695, 14301, 25, 12536, 17752, 60, 284, 2290, 11, 9507, 76, 14301, 25, 12536, 17752, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 5519, 4400, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.whylabs_callback.WhyLabsCallbackHandler.html
4304378166df-0
langchain.callbacks.flyte_callback.import_flytekit¶ langchain.callbacks.flyte_callback.import_flytekit() → Tuple[flytekit, renderer][source]¶
[ 5317, 8995, 72134, 840, 398, 668, 12802, 35997, 766, 398, 668, 8390, 55609, 198, 5317, 8995, 72134, 840, 398, 668, 12802, 35997, 766, 398, 668, 8390, 368, 11651, 25645, 58, 22374, 668, 8390, 11, 20294, 1483, 2484, 60, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.flyte_callback.import_flytekit.html
dae693173075-0
langchain.callbacks.utils.load_json¶ langchain.callbacks.utils.load_json(json_path: Union[str, Path]) → str[source]¶ Load json file to a string. Parameters json_path (str) – The path to the json file. Returns The string representation of the json file. Return type (str)
[ 5317, 8995, 72134, 8576, 5214, 9643, 55609, 198, 5317, 8995, 72134, 8576, 5214, 9643, 9488, 2703, 25, 9323, 17752, 11, 8092, 2526, 11651, 610, 76747, 60, 55609, 198, 6003, 3024, 1052, 311, 264, 925, 627, 9905, 198, 2285, 2703, 320, 496, 8, 1389, 578, 1853, 311, 279, 3024, 1052, 627, 16851, 198, 791, 925, 13340, 315, 279, 3024, 1052, 627, 5715, 955, 198, 4293, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.utils.load_json.html
5ce1afe0b95d-0
langchain.callbacks.tracers.stdout.elapsed¶ langchain.callbacks.tracers.stdout.elapsed(run: Any) → str[source]¶ Get the elapsed time of a run. Parameters run – any object with a start_time and end_time attribute. Returns A string with the elapsed time in seconds ormilliseconds if time is less than a second.
[ 5317, 8995, 72134, 5543, 73797, 25880, 78582, 55609, 198, 5317, 8995, 72134, 5543, 73797, 25880, 78582, 39872, 25, 5884, 8, 11651, 610, 76747, 60, 55609, 198, 1991, 279, 26401, 892, 315, 264, 1629, 627, 9905, 198, 6236, 1389, 904, 1665, 449, 264, 1212, 3084, 323, 842, 3084, 7180, 627, 16851, 198, 32, 925, 449, 279, 26401, 892, 304, 6622, 477, 61872, 422, 892, 374, 2753, 1109, 264, 2132, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.tracers.stdout.elapsed.html
36f43f4fc9a7-0
langchain.callbacks.wandb_callback.analyze_text¶ langchain.callbacks.wandb_callback.analyze_text(text: str, complexity_metrics: bool = True, visualize: bool = True, nlp: Any = None, output_dir: Optional[Union[str, Path]] = None) → dict[source]¶ Analyze text using textstat and spacy. Parameters text (str) – The text to analyze. complexity_metrics (bool) – Whether to compute complexity metrics. visualize (bool) – Whether to visualize the text. nlp (spacy.lang) – The spacy language model to use for visualization. output_dir (str) – The directory to save the visualization files to. Returns A dictionary containing the complexity metrics and visualizationfiles serialized in a wandb.Html element. Return type (dict)
[ 5317, 8995, 72134, 1444, 438, 65, 12802, 10985, 56956, 4424, 55609, 198, 5317, 8995, 72134, 1444, 438, 65, 12802, 10985, 56956, 4424, 7383, 25, 610, 11, 23965, 38786, 25, 1845, 284, 3082, 11, 51187, 25, 1845, 284, 3082, 11, 308, 13855, 25, 5884, 284, 2290, 11, 2612, 4432, 25, 12536, 58, 33758, 17752, 11, 8092, 5163, 284, 2290, 8, 11651, 6587, 76747, 60, 55609, 198, 2127, 56956, 1495, 1701, 1495, 10079, 323, 993, 2826, 627, 9905, 198, 1342, 320, 496, 8, 1389, 578, 1495, 311, 24564, 627, 24126, 488, 38786, 320, 2707, 8, 1389, 13440, 311, 12849, 23965, 17150, 627, 30318, 553, 320, 2707, 8, 1389, 13440, 311, 51187, 279, 1495, 627, 77, 13855, 320, 2203, 2826, 8178, 8, 1389, 578, 993, 2826, 4221, 1646, 311, 1005, 369, 42148, 627, 3081, 4432, 320, 496, 8, 1389, 578, 6352, 311, 3665, 279, 42148, 3626, 311, 627, 16851, 198, 32, 11240, 8649, 279, 23965, 17150, 323, 42148, 7346, 34016, 304, 264, 29810, 65, 44232, 2449, 627, 5715, 955, 198, 32378, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.wandb_callback.analyze_text.html
ffba95bcf4dd-0
langchain.callbacks.comet_ml_callback.CometCallbackHandler¶ class langchain.callbacks.comet_ml_callback.CometCallbackHandler(task_type: Optional[str] = 'inference', workspace: Optional[str] = None, project_name: Optional[str] = None, tags: Optional[Sequence] = None, name: Optional[str] = None, visualizations: Optional[List[str]] = None, complexity_metrics: bool = False, custom_metrics: Optional[Callable] = None, stream_logs: bool = True)[source]¶ Bases: BaseMetadataCallbackHandler, BaseCallbackHandler Callback Handler that logs to Comet. Parameters job_type (str) – The type of comet_ml task such as “inference”, “testing” or “qc” project_name (str) – The comet_ml project name tags (list) – Tags to add to the task task_name (str) – Name of the comet_ml task visualize (bool) – Whether to visualize the run. complexity_metrics (bool) – Whether to log complexity metrics stream_logs (bool) – Whether to stream callback actions to Comet This handler will utilize the associated callback method and formats the input of each callback function with metadata regarding the state of LLM run, and adds the response to the list of records for both the {method}_records and action. It then logs the response to Comet. Initialize callback handler. Methods __init__([task_type, workspace, ...]) Initialize callback handler. flush_tracker([langchain_asset, task_type, ...]) Flush the tracker and setup the session. get_custom_callback_meta() on_agent_action(action, **kwargs) Run on agent action. on_agent_finish(finish, **kwargs) Run when agent ends running. on_chain_end(outputs, **kwargs)
[ 5317, 8995, 72134, 916, 295, 77667, 12802, 3034, 295, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 916, 295, 77667, 12802, 3034, 295, 7646, 3126, 17941, 1857, 25, 12536, 17752, 60, 284, 364, 258, 2251, 518, 28614, 25, 12536, 17752, 60, 284, 2290, 11, 2447, 1292, 25, 12536, 17752, 60, 284, 2290, 11, 9681, 25, 12536, 58, 14405, 60, 284, 2290, 11, 836, 25, 12536, 17752, 60, 284, 2290, 11, 9302, 8200, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 23965, 38786, 25, 1845, 284, 3641, 11, 2587, 38786, 25, 12536, 58, 41510, 60, 284, 2290, 11, 4365, 43999, 25, 1845, 284, 3082, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 14952, 7646, 3126, 11, 5464, 7646, 3126, 198, 7646, 20549, 430, 18929, 311, 99198, 627, 9905, 198, 8975, 1857, 320, 496, 8, 1389, 578, 955, 315, 71086, 77667, 3465, 1778, 439, 1054, 258, 2251, 863, 345, 2118, 9016, 863, 477, 1054, 60933, 89874, 5094, 1292, 320, 496, 8, 1389, 578, 71086, 77667, 2447, 836, 198, 14412, 320, 1638, 8, 1389, 28783, 311, 923, 311, 279, 3465, 198, 8366, 1292, 320, 496, 8, 1389, 4076, 315, 279, 71086, 77667, 3465, 198, 30318, 553, 320, 2707, 8, 1389, 13440, 311, 51187, 279, 1629, 627, 24126, 488, 38786, 320, 2707, 8, 1389, 13440, 311, 1515, 23965, 17150, 198, 4116, 43999, 320, 2707, 8, 1389, 13440, 311, 4365, 4927, 6299, 311, 99198, 198, 2028, 7158, 690, 29166, 279, 5938, 4927, 1749, 323, 20447, 198, 1820, 1988, 315, 1855, 4927, 734, 449, 11408, 9002, 279, 1614, 315, 445, 11237, 1629, 345, 438, 11621, 279, 2077, 311, 279, 1160, 315, 7576, 369, 2225, 279, 314, 4492, 20009, 27295, 323, 198, 1335, 13, 1102, 1243, 18929, 279, 2077, 311, 99198, 627, 10130, 4927, 7158, 627, 18337, 198, 565, 2381, 565, 2625, 8366, 1857, 11, 4194, 44009, 11, 4194, 1131, 2608, 10130, 4927, 7158, 627, 22402, 51364, 2625, 5317, 8995, 43399, 11, 4194, 8366, 1857, 11, 4194, 1131, 2608, 47974, 279, 29431, 323, 6642, 279, 3882, 627, 456, 16254, 12802, 13686, 746, 263, 26814, 8090, 15665, 11, 4194, 334, 9872, 340, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 8 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.comet_ml_callback.CometCallbackHandler.html
ffba95bcf4dd-1
Run when agent ends running. on_chain_end(outputs, **kwargs) Run when chain ends running. on_chain_error(error, **kwargs) Run when chain errors. on_chain_start(serialized, inputs, **kwargs) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, **kwargs) Run when LLM ends running. on_llm_error(error, **kwargs) Run when LLM errors. on_llm_new_token(token, **kwargs) Run when LLM generates a new token. on_llm_start(serialized, prompts, **kwargs) Run when LLM starts. on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, **kwargs) Run when agent is ending. on_tool_end(output, **kwargs) Run when tool ends running. on_tool_error(error, **kwargs) Run when tool errors. on_tool_start(serialized, input_str, **kwargs) Run when tool starts running. reset_callback_meta() Reset the callback metadata. Attributes always_verbose Whether to call verbose callbacks even if verbose is False. ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever
[ 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 334, 9872, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 334, 9872, 340, 6869, 994, 445, 11237, 8638, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 334, 9872, 340, 6869, 994, 8479, 374, 13696, 627, 263, 23627, 6345, 11304, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 334, 9872, 340, 6869, 994, 5507, 8638, 4401, 627, 9915, 12802, 13686, 746, 15172, 279, 4927, 11408, 627, 10738, 198, 33222, 69021, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.comet_ml_callback.CometCallbackHandler.html
ffba95bcf4dd-2
ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline flush_tracker(langchain_asset: Any = None, task_type: Optional[str] = 'inference', workspace: Optional[str] = None, project_name: Optional[str] = 'comet-langchain-demo', tags: Optional[Sequence] = None, name: Optional[str] = None, visualizations: Optional[List[str]] = None, complexity_metrics: bool = False, custom_metrics: Optional[Callable] = None, finish: bool = False, reset: bool = False) → None[source]¶ Flush the tracker and setup the session. Everything after this will be a new table. Parameters name – Name of the preformed session so far so it is identifyable langchain_asset – The langchain asset to save. finish – Whether to finish the run. Returns – None get_custom_callback_meta() → Dict[str, Any]¶ on_agent_action(action: AgentAction, **kwargs: Any) → Any[source]¶ Run on agent action. on_agent_finish(finish: AgentFinish, **kwargs: Any) → None[source]¶ Run when agent ends running. on_chain_end(outputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Run when chain ends running. on_chain_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when chain errors. on_chain_start(serialized: Dict[str, Any], inputs: Dict[str, Any], **kwargs: Any) → None[source]¶ Run when chain starts running.
[ 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 22402, 51364, 50593, 8995, 43399, 25, 5884, 284, 2290, 11, 3465, 1857, 25, 12536, 17752, 60, 284, 364, 258, 2251, 518, 28614, 25, 12536, 17752, 60, 284, 2290, 11, 2447, 1292, 25, 12536, 17752, 60, 284, 364, 884, 295, 76560, 8995, 59993, 518, 9681, 25, 12536, 58, 14405, 60, 284, 2290, 11, 836, 25, 12536, 17752, 60, 284, 2290, 11, 9302, 8200, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 23965, 38786, 25, 1845, 284, 3641, 11, 2587, 38786, 25, 12536, 58, 41510, 60, 284, 2290, 11, 6381, 25, 1845, 284, 3641, 11, 7738, 25, 1845, 284, 3641, 8, 11651, 2290, 76747, 60, 55609, 198, 47974, 279, 29431, 323, 6642, 279, 3882, 627, 36064, 1306, 420, 690, 387, 264, 502, 2007, 627, 9905, 198, 609, 1389, 4076, 315, 279, 864, 10365, 3882, 779, 3117, 779, 433, 374, 10765, 481, 198, 5317, 8995, 43399, 1389, 578, 8859, 8995, 9513, 311, 3665, 627, 31250, 1389, 13440, 311, 6381, 279, 1629, 627, 16851, 1389, 2290, 198, 456, 16254, 12802, 13686, 368, 11651, 30226, 17752, 11, 5884, 60, 55609, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 76747, 60, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8479, 10548, 4401, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 11374, 25, 30226, 17752, 11, 5884, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8957, 8638, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.comet_ml_callback.CometCallbackHandler.html
ffba95bcf4dd-3
Run when chain starts running. on_chat_model_start(serialized: Dict[str, Any], messages: List[List[BaseMessage]], *, run_id: UUID, parent_run_id: Optional[UUID] = None, tags: Optional[List[str]] = None, **kwargs: Any) → Any¶ Run when a chat model starts running. on_llm_end(response: LLMResult, **kwargs: Any) → None[source]¶ Run when LLM ends running. on_llm_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when LLM errors. on_llm_new_token(token: str, **kwargs: Any) → None[source]¶ Run when LLM generates a new token. on_llm_start(serialized: Dict[str, Any], prompts: List[str], **kwargs: Any) → None[source]¶ Run when LLM starts. on_retriever_end(documents: Sequence[Document], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever ends running. on_retriever_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever errors. on_retriever_start(query: str, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when Retriever starts running. on_text(text: str, **kwargs: Any) → None[source]¶ Run when agent is ending. on_tool_end(output: str, **kwargs: Any) → None[source]¶ Run when tool ends running.
[ 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 6743, 25, 1796, 53094, 58, 4066, 2097, 21128, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 9681, 25, 12536, 53094, 17752, 5163, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 25, 445, 11237, 2122, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 27983, 264, 502, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 52032, 25, 1796, 17752, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 445, 11237, 8638, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 25, 29971, 58, 7676, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 25, 610, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 8479, 374, 13696, 627, 263, 23627, 6345, 11304, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 10548, 4401, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.comet_ml_callback.CometCallbackHandler.html
ffba95bcf4dd-4
Run when tool ends running. on_tool_error(error: Union[Exception, KeyboardInterrupt], **kwargs: Any) → None[source]¶ Run when tool errors. on_tool_start(serialized: Dict[str, Any], input_str: str, **kwargs: Any) → None[source]¶ Run when tool starts running. reset_callback_meta() → None¶ Reset the callback metadata. property always_verbose: bool¶ Whether to call verbose callbacks even if verbose is False. property ignore_agent: bool¶ Whether to ignore agent callbacks. property ignore_chain: bool¶ Whether to ignore chain callbacks. property ignore_chat_model: bool¶ Whether to ignore chat model callbacks. property ignore_llm: bool¶ Whether to ignore LLM callbacks. property ignore_retriever: bool¶ Whether to ignore retriever callbacks. raise_error: bool = False¶ run_inline: bool = False¶
[ 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 25, 30226, 17752, 11, 5884, 1145, 1988, 2966, 25, 610, 11, 3146, 9872, 25, 5884, 8, 11651, 2290, 76747, 60, 55609, 198, 6869, 994, 5507, 8638, 4401, 627, 9915, 12802, 13686, 368, 11651, 2290, 55609, 198, 15172, 279, 4927, 11408, 627, 3784, 2744, 69021, 25, 1845, 55609, 198, 25729, 311, 1650, 14008, 27777, 1524, 422, 14008, 374, 3641, 627, 3784, 10240, 26814, 25, 1845, 55609, 198, 25729, 311, 10240, 8479, 27777, 627, 3784, 10240, 31683, 25, 1845, 55609, 198, 25729, 311, 10240, 8957, 27777, 627, 3784, 10240, 36153, 5156, 25, 1845, 55609, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 3784, 10240, 44095, 76, 25, 1845, 55609, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 3784, 10240, 1311, 9104, 424, 25, 1845, 55609, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 25, 1845, 284, 3641, 55609, 198, 6236, 42971, 25, 1845, 284, 3641, 55609 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.comet_ml_callback.CometCallbackHandler.html
a7307815423a-0
langchain.callbacks.streamlit.mutable_expander.ChildRecord¶ class langchain.callbacks.streamlit.mutable_expander.ChildRecord(type, kwargs, dg)[source]¶ Bases: NamedTuple Create new instance of ChildRecord(type, kwargs, dg) Methods __init__() count(value, /) Return number of occurrences of value. index(value[, start, stop]) Return first index of value. Attributes dg Alias for field number 2 kwargs Alias for field number 1 type Alias for field number 0 count(value, /)¶ Return number of occurrences of value. index(value, start=0, stop=9223372036854775807, /)¶ Return first index of value. Raises ValueError if the value is not present. dg: DeltaGenerator¶ Alias for field number 2 kwargs: Dict[str, Any]¶ Alias for field number 1 type: ChildType¶ Alias for field number 0
[ 5317, 8995, 72134, 15307, 32735, 61359, 14548, 8363, 29606, 6607, 55609, 198, 1058, 8859, 8995, 72134, 15307, 32735, 61359, 14548, 8363, 29606, 6607, 5930, 11, 16901, 11, 41386, 6758, 2484, 60, 55609, 198, 33, 2315, 25, 41559, 29781, 198, 4110, 502, 2937, 315, 9576, 6607, 5930, 11, 16901, 11, 41386, 340, 18337, 198, 565, 2381, 33716, 1868, 3764, 11, 4194, 54660, 5715, 1396, 315, 57115, 315, 907, 627, 1275, 3764, 38372, 4194, 2527, 11, 4194, 9684, 2608, 5715, 1176, 1963, 315, 907, 627, 10738, 198, 36238, 198, 23555, 369, 2115, 1396, 220, 17, 198, 9872, 198, 23555, 369, 2115, 1396, 220, 16, 198, 1337, 198, 23555, 369, 2115, 1396, 220, 15, 198, 1868, 3764, 11, 611, 8, 55609, 198, 5715, 1396, 315, 57115, 315, 907, 627, 1275, 3764, 11, 1212, 28, 15, 11, 3009, 28, 20275, 17609, 9639, 23717, 21144, 18216, 22, 11, 611, 8, 55609, 198, 5715, 1176, 1963, 315, 907, 627, 36120, 15764, 422, 279, 907, 374, 539, 3118, 627, 36238, 25, 26002, 12846, 55609, 198, 23555, 369, 2115, 1396, 220, 17, 198, 9872, 25, 30226, 17752, 11, 5884, 60, 55609, 198, 23555, 369, 2115, 1396, 220, 16, 198, 1337, 25, 9576, 941, 55609, 198, 23555, 369, 2115, 1396, 220, 15 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.streamlit.mutable_expander.ChildRecord.html
47a0d3dcfa1f-0
langchain.callbacks.promptlayer_callback.PromptLayerCallbackHandler¶ class langchain.callbacks.promptlayer_callback.PromptLayerCallbackHandler(pl_id_callback: Optional[Callable[[...], Any]] = None, pl_tags: Optional[List[str]] = [])[source]¶ Bases: BaseCallbackHandler Callback handler for promptlayer. Initialize the PromptLayerCallbackHandler. Methods __init__([pl_id_callback, pl_tags]) Initialize the PromptLayerCallbackHandler. on_agent_action(action, *, run_id[, ...]) Run on agent action. on_agent_finish(finish, *, run_id[, ...]) Run on agent end. on_chain_end(outputs, *, run_id[, parent_run_id]) Run when chain ends running. on_chain_error(error, *, run_id[, parent_run_id]) Run when chain errors. on_chain_start(serialized, inputs, *, run_id) Run when chain starts running. on_chat_model_start(serialized, messages, *, ...) Run when a chat model starts running. on_llm_end(response, *, run_id[, parent_run_id]) Run when LLM ends running. on_llm_error(error, *, run_id[, parent_run_id]) Run when LLM errors. on_llm_new_token(token, *, run_id[, ...]) Run on new LLM token. on_llm_start(serialized, prompts, *, run_id) Run when LLM starts running. on_retriever_end(documents, *, run_id[, ...]) Run when Retriever ends running. on_retriever_error(error, *, run_id[, ...]) Run when Retriever errors.
[ 5317, 8995, 72134, 66499, 10546, 12802, 1087, 15091, 9368, 7646, 3126, 55609, 198, 1058, 8859, 8995, 72134, 66499, 10546, 12802, 1087, 15091, 9368, 7646, 3126, 37709, 851, 12802, 25, 12536, 58, 41510, 15873, 1131, 1145, 5884, 5163, 284, 2290, 11, 628, 16735, 25, 12536, 53094, 17752, 5163, 284, 510, 41105, 2484, 60, 55609, 198, 33, 2315, 25, 5464, 7646, 3126, 198, 7646, 7158, 369, 10137, 10546, 627, 10130, 279, 60601, 9368, 7646, 3126, 627, 18337, 198, 565, 2381, 565, 2625, 501, 851, 12802, 11, 4194, 501, 16735, 2608, 10130, 279, 60601, 9368, 7646, 3126, 627, 263, 26814, 8090, 15665, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 8957, 6103, 627, 263, 31683, 5011, 30587, 1534, 11, 4194, 25986, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 8957, 8638, 4401, 627, 263, 36153, 5156, 5011, 30587, 1534, 11, 4194, 16727, 11, 4194, 12594, 4194, 32318, 6869, 994, 264, 6369, 1646, 8638, 4401, 627, 263, 44095, 76, 6345, 5802, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 445, 11237, 10548, 4401, 627, 263, 44095, 76, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 445, 11237, 6103, 627, 263, 44095, 76, 6046, 6594, 13577, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 389, 502, 445, 11237, 4037, 627, 263, 44095, 76, 5011, 30587, 1534, 11, 4194, 25475, 13044, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 445, 11237, 8638, 4401, 627, 263, 1311, 9104, 424, 6345, 19702, 2901, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 10548, 4401, 627, 263, 1311, 9104, 424, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 6103, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.promptlayer_callback.PromptLayerCallbackHandler.html
47a0d3dcfa1f-1
Run when Retriever errors. on_retriever_start(query, *, run_id[, ...]) Run when Retriever starts running. on_text(text, *, run_id[, parent_run_id]) Run on arbitrary text. on_tool_end(output, *, run_id[, parent_run_id]) Run when tool ends running. on_tool_error(error, *, run_id[, parent_run_id]) Run when tool errors. on_tool_start(serialized, input_str, *, run_id) Run when tool starts running. Attributes ignore_agent Whether to ignore agent callbacks. ignore_chain Whether to ignore chain callbacks. ignore_chat_model Whether to ignore chat model callbacks. ignore_llm Whether to ignore LLM callbacks. ignore_retriever Whether to ignore retriever callbacks. raise_error run_inline on_agent_action(action: AgentAction, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent action. on_agent_finish(finish: AgentFinish, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run on agent end. on_chain_end(outputs: Dict[str, Any], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when chain ends running. on_chain_error(error: Union[Exception, KeyboardInterrupt], *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any) → Any¶ Run when chain errors.
[ 6869, 994, 10608, 462, 2099, 6103, 627, 263, 1311, 9104, 424, 5011, 10974, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 1131, 2608, 6869, 994, 10608, 462, 2099, 8638, 4401, 627, 263, 4424, 7383, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 389, 25142, 1495, 627, 263, 23627, 6345, 11304, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 10548, 4401, 627, 263, 23627, 4188, 6524, 11, 4194, 12594, 4194, 6236, 851, 38372, 4194, 3850, 14334, 851, 2608, 6869, 994, 5507, 6103, 627, 263, 23627, 5011, 30587, 1534, 11, 4194, 1379, 2966, 11, 4194, 12594, 4194, 6236, 851, 340, 6869, 994, 5507, 8638, 4401, 627, 10738, 198, 13431, 26814, 198, 25729, 311, 10240, 8479, 27777, 627, 13431, 31683, 198, 25729, 311, 10240, 8957, 27777, 627, 13431, 36153, 5156, 198, 25729, 311, 10240, 6369, 1646, 27777, 627, 13431, 44095, 76, 198, 25729, 311, 10240, 445, 11237, 27777, 627, 13431, 1311, 9104, 424, 198, 25729, 311, 10240, 10992, 424, 27777, 627, 19223, 4188, 198, 6236, 42971, 198, 263, 26814, 8090, 15665, 25, 21372, 2573, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 1957, 627, 263, 26814, 44080, 968, 18675, 25, 21372, 26748, 11, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 389, 8479, 842, 627, 263, 31683, 6345, 71213, 25, 30226, 17752, 11, 5884, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 10548, 4401, 627, 263, 31683, 4188, 6524, 25, 9323, 58, 1378, 11, 85288, 1145, 12039, 1629, 851, 25, 24628, 11, 2748, 14334, 851, 25, 12536, 58, 25786, 60, 284, 2290, 11, 3146, 9872, 25, 5884, 8, 11651, 5884, 55609, 198, 6869, 994, 8957, 6103, 13 ]
https://langchain.readthedocs.io/en/latest/callbacks/langchain.callbacks.promptlayer_callback.PromptLayerCallbackHandler.html