Skip to content

Commit

Permalink
docs: robocorpai dosctrings (#17968)
Browse files Browse the repository at this point in the history
Added missing docstrings

---------

Co-authored-by: Bagatur <[email protected]>
  • Loading branch information
leo-gan and baskaryan authored Feb 22, 2024
1 parent b0cfb86 commit 971d29e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/partners/robocorp/langchain_robocorp/toolkits.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@


class RunDetailsCallbackHandler(BaseCallbackHandler):
"""Callback handler to add run details to the run."""

def __init__(self, run_details: dict) -> None:
"""Initialize the callback handler.
Args:
run_details (dict): Run details.
"""
self.run_details = run_details

def on_tool_start(
Expand All @@ -50,10 +57,14 @@ def on_tool_start(


class ToolInputSchema(BaseModel):
"""Tool input schema."""

question: str = Field(...)


class ToolArgs(TypedDict):
"""Tool arguments."""

name: str
description: str
callback_manager: CallbackManager
Expand Down

0 comments on commit 971d29e

Please sign in to comment.