mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
docs: robocorpai dosctrings (#17968)
Added missing docstrings --------- Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
parent
b0cfb86c48
commit
971d29e718
@ -33,7 +33,14 @@ LLM_TRACE_HEADER = "X-action-trace"
|
|||||||
|
|
||||||
|
|
||||||
class RunDetailsCallbackHandler(BaseCallbackHandler):
|
class RunDetailsCallbackHandler(BaseCallbackHandler):
|
||||||
|
"""Callback handler to add run details to the run."""
|
||||||
|
|
||||||
def __init__(self, run_details: dict) -> None:
|
def __init__(self, run_details: dict) -> None:
|
||||||
|
"""Initialize the callback handler.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
run_details (dict): Run details.
|
||||||
|
"""
|
||||||
self.run_details = run_details
|
self.run_details = run_details
|
||||||
|
|
||||||
def on_tool_start(
|
def on_tool_start(
|
||||||
@ -50,10 +57,14 @@ class RunDetailsCallbackHandler(BaseCallbackHandler):
|
|||||||
|
|
||||||
|
|
||||||
class ToolInputSchema(BaseModel):
|
class ToolInputSchema(BaseModel):
|
||||||
|
"""Tool input schema."""
|
||||||
|
|
||||||
question: str = Field(...)
|
question: str = Field(...)
|
||||||
|
|
||||||
|
|
||||||
class ToolArgs(TypedDict):
|
class ToolArgs(TypedDict):
|
||||||
|
"""Tool arguments."""
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
description: str
|
description: str
|
||||||
callback_manager: CallbackManager
|
callback_manager: CallbackManager
|
||||||
|
Loading…
Reference in New Issue
Block a user