id
stringlengths
14
16
text
stringlengths
13
2.7k
source
stringlengths
57
178
5c427f0b3846-3
The jsonpatch ops can be applied in order to construct state. async atransform(input: AsyncIterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
5c427f0b3846-4
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
5c427f0b3846-5
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude. classmethod from_function(func: Optional[Callable], name: str, description: str, return_direct: bool = False, args_schema: Optional[Type[BaseModel]] = None, coroutine: Optional[Callable[[...], Awaitable[Any]]] =...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
5c427f0b3846-6
purposes, ‘max_concurrency’ for controlling how much work to do in parallel, and other keys. Please refer to the RunnableConfig for more details. Returns The output of the runnable. classmethod is_lc_serializable() → bool¶ Is this class serializable? json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]]...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
5c427f0b3846-7
run(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, run_name: Optional[st...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
5c427f0b3846-8
Bind config to a Runnable, returning a new Runnable. with_fallbacks(fallbacks: Sequence[Runnable[Input, Output]], *, exceptions_to_handle: Tuple[Type[BaseException], ...] = (<class 'Exception'>,)) → RunnableWithFallbacksT[Input, Output]¶ Add fallbacks to a runnable, returning a new Runnable. Parameters fallbacks – A se...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
5c427f0b3846-9
between retries stop_after_attempt – The maximum number of attempts to make before giving up Returns A new Runnable that retries the original runnable on exceptions. with_types(*, input_type: Optional[Type[Input]] = None, output_type: Optional[Type[Output]] = None) → Runnable[Input, Output]¶ Bind input and output types...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
5c427f0b3846-10
Bittensor Pydantic compatibility Comparing Chain Outputs Agents AutoGPT BabyAGI with Tools Plug-and-Plai Wikibase Agent SalesGPT - Your Context-Aware AI Sales Assistant With Knowledge Base Custom Agent with PlugIn Retrieval Agent Debates with Tools Message Memory in Agent backed by a database Memory in Agent Multi-Inpu...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.base.Tool.html
315ac452e3b8-0
langchain.tools.file_management.delete.FileDeleteInput¶ class langchain.tools.file_management.delete.FileDeleteInput[source]¶ Bases: BaseModel Input for DeleteFileTool. 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 val...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.file_management.delete.FileDeleteInput.html
315ac452e3b8-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.file_management.delete.FileDeleteInput.html
315ac452e3b8-2
classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.file_management.delete.FileDeleteInput.html
32afb161d861-0
langchain.tools.playwright.utils.create_async_playwright_browser¶ langchain.tools.playwright.utils.create_async_playwright_browser(headless: bool = True) → AsyncBrowser[source]¶ Create an async playwright browser. Parameters headless – Whether to run the browser in headless mode. Defaults to True. Returns The playwrigh...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.utils.create_async_playwright_browser.html
21ffea22e710-0
langchain.tools.office365.create_draft_message.CreateDraftMessageSchema¶ class langchain.tools.office365.create_draft_message.CreateDraftMessageSchema[source]¶ Bases: BaseModel Input for SendMessageTool. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.create_draft_message.CreateDraftMessageSchema.html
21ffea22e710-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.create_draft_message.CreateDraftMessageSchema.html
21ffea22e710-2
classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.create_draft_message.CreateDraftMessageSchema.html
05c91d7927e9-0
langchain.tools.ifttt.IFTTTWebhook¶ class langchain.tools.ifttt.IFTTTWebhook[source]¶ Bases: BaseTool IFTTT Webhook. Parameters name – name of the tool description – description of the tool url – url to hit with the json event. Create a new model by parsing and validating input data from keyword arguments. Raises Valid...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-1
Optional list of tags associated with the tool. Defaults to None These tags will be associated with each call to this tool, and passed as arguments to the handlers defined in callbacks. You can use these to eg identify a specific instance of a tool with its use case. param url: str [Required]¶ param verbose: bool = Fal...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-2
Subclasses should override this method if they can run asynchronously. async arun(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-3
The jsonpatch ops can be applied in order to construct state. async atransform(input: AsyncIterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-4
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-5
Get the namespace of the langchain object. For example, if the class is langchain.llms.openai.OpenAI, then the namespace is [“langchain”, “llms”, “openai”] get_output_schema(config: Optional[RunnableConfig] = None) → Type[BaseModel]¶ Get a pydantic model that can be used to validate output to the runnable. Runnables th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-6
classmethod is_lc_serializable() → bool¶ Is this class serializable? json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defa...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-7
run(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, run_name: Optional[st...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-8
Bind config to a Runnable, returning a new Runnable. with_fallbacks(fallbacks: Sequence[Runnable[Input, Output]], *, exceptions_to_handle: Tuple[Type[BaseException], ...] = (<class 'Exception'>,)) → RunnableWithFallbacksT[Input, Output]¶ Add fallbacks to a runnable, returning a new Runnable. Parameters fallbacks – A se...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
05c91d7927e9-9
between retries stop_after_attempt – The maximum number of attempts to make before giving up Returns A new Runnable that retries the original runnable on exceptions. with_types(*, input_type: Optional[Type[Input]] = None, output_type: Optional[Type[Output]] = None) → Runnable[Input, Output]¶ Bind input and output types...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ifttt.IFTTTWebhook.html
3aef8bfdb69e-0
langchain.tools.gmail.utils.build_resource_service¶ langchain.tools.gmail.utils.build_resource_service(credentials: Optional[Credentials] = None, service_name: str = 'gmail', service_version: str = 'v1') → Resource[source]¶ Build a Gmail service. Examples using build_resource_service¶ Gmail
lang/api.python.langchain.com/en/latest/tools/langchain.tools.gmail.utils.build_resource_service.html
579737e3fe74-0
langchain.tools.bearly.tool.FileInfo¶ class langchain.tools.bearly.tool.FileInfo[source]¶ Bases: BaseModel Information about a file to be uploaded. 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 descr...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.bearly.tool.FileInfo.html
579737e3fe74-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.bearly.tool.FileInfo.html
579737e3fe74-2
classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.bearly.tool.FileInfo.html
993ad4727e4a-0
langchain.tools.render.format_tool_to_openai_function¶ langchain.tools.render.format_tool_to_openai_function(tool: BaseTool) → FunctionDescription[source]¶ Format tool into the OpenAI function API. Examples using format_tool_to_openai_function¶ Tools as OpenAI Functions
lang/api.python.langchain.com/en/latest/tools/langchain.tools.render.format_tool_to_openai_function.html
c9ee3f331c39-0
langchain.tools.render.render_text_description¶ langchain.tools.render.render_text_description(tools: List[BaseTool]) → str[source]¶ Render the tool name and description in plain text. Output will be in the format of: search: This tool is used for search calculator: This tool is used for math
lang/api.python.langchain.com/en/latest/tools/langchain.tools.render.render_text_description.html
92f75e282f5a-0
langchain.tools.playwright.get_elements.GetElementsTool¶ class langchain.tools.playwright.get_elements.GetElementsTool[source]¶ Bases: BaseBrowserTool Tool for getting elements in the current web page matching a CSS selector. Create a new model by parsing and validating input data from keyword arguments. Raises Validat...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-1
that after the tool is called, the AgentExecutor will stop looping. param sync_browser: Optional['SyncBrowser'] = None¶ param tags: Optional[List[str]] = None¶ Optional list of tags associated with the tool. Defaults to None These tags will be associated with each call to this tool, and passed as arguments to the handl...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-2
Subclasses should override this method if they can run asynchronously. async arun(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-3
The jsonpatch ops can be applied in order to construct state. async atransform(input: AsyncIterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-4
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-5
Instantiate the tool. classmethod from_orm(obj: Any) → Model¶ get_input_schema(config: Optional[RunnableConfig] = None) → Type[BaseModel]¶ The tool’s input schema. classmethod get_lc_namespace() → List[str]¶ Get the namespace of the langchain object. For example, if the class is langchain.llms.openai.OpenAI, then the n...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-6
classmethod is_lc_serializable() → bool¶ Is this class serializable? json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defa...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-7
run(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, run_name: Optional[st...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-8
Bind config to a Runnable, returning a new Runnable. with_fallbacks(fallbacks: Sequence[Runnable[Input, Output]], *, exceptions_to_handle: Tuple[Type[BaseException], ...] = (<class 'Exception'>,)) → RunnableWithFallbacksT[Input, Output]¶ Add fallbacks to a runnable, returning a new Runnable. Parameters fallbacks – A se...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
92f75e282f5a-9
between retries stop_after_attempt – The maximum number of attempts to make before giving up Returns A new Runnable that retries the original runnable on exceptions. with_types(*, input_type: Optional[Type[Input]] = None, output_type: Optional[Type[Output]] = None) → Runnable[Input, Output]¶ Bind input and output types...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.get_elements.GetElementsTool.html
bae1477255ca-0
langchain.tools.edenai.edenai_base_tool.EdenaiTool¶ class langchain.tools.edenai.edenai_base_tool.EdenaiTool[source]¶ Bases: BaseTool the base tool for all the EdenAI Tools . you should have the environment variable EDENAI_API_KEY set with your API token. You can find your token here: https://app.edenai.run/admin/accou...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-1
param providers: List[str] [Required]¶ provider to use for the API call. param return_direct: bool = False¶ Whether to return the tool’s output directly. Setting this to True means that after the tool is called, the AgentExecutor will stop looping. param subfeature: str [Required]¶ param tags: Optional[List[str]] = Non...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-2
Subclasses should override this method if they can run asynchronously. async arun(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-3
The jsonpatch ops can be applied in order to construct state. async atransform(input: AsyncIterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-4
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-5
Get the namespace of the langchain object. For example, if the class is langchain.llms.openai.OpenAI, then the namespace is [“langchain”, “llms”, “openai”] get_output_schema(config: Optional[RunnableConfig] = None) → Type[BaseModel]¶ Get a pydantic model that can be used to validate output to the runnable. Runnables th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-6
classmethod is_lc_serializable() → bool¶ Is this class serializable? json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defa...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-7
run(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, run_name: Optional[st...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-8
Bind config to a Runnable, returning a new Runnable. with_fallbacks(fallbacks: Sequence[Runnable[Input, Output]], *, exceptions_to_handle: Tuple[Type[BaseException], ...] = (<class 'Exception'>,)) → RunnableWithFallbacksT[Input, Output]¶ Add fallbacks to a runnable, returning a new Runnable. Parameters fallbacks – A se...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
bae1477255ca-9
between retries stop_after_attempt – The maximum number of attempts to make before giving up Returns A new Runnable that retries the original runnable on exceptions. with_types(*, input_type: Optional[Type[Input]] = None, output_type: Optional[Type[Output]] = None) → Runnable[Input, Output]¶ Bind input and output types...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.edenai_base_tool.EdenaiTool.html
7fd5c605b403-0
langchain.tools.shell.tool.ShellTool¶ class langchain.tools.shell.tool.ShellTool[source]¶ Bases: BaseTool Tool to run shell commands. 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 args_schema: Type[p...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-1
and passed as arguments to the handlers defined in callbacks. You can use these to eg identify a specific instance of a tool with its use case. param verbose: bool = False¶ Whether to log the tool’s progress. __call__(tool_input: str, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None) → ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-2
Run the tool asynchronously. async astream(input: Input, config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of astream, which calls ainvoke. Subclasses should override this method if they support streaming output. async astream_log(input: Any, config: Optio...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-3
Default implementation runs invoke in parallel using a thread pool executor. The default implementation of batch works well for IO bound runnables. Subclasses should override this method if they can batch more efficiently; e.g., if the underlying runnable uses an API which supports a batch mode. bind(**kwargs: Any) → R...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-4
Duplicate a model, optionally choose which fields to include, exclude and change. Parameters include – fields to include in new model exclude – fields to exclude from new model, as with values this takes precedence over include update – values to change/add in the new model. Note: the data is not validated before creat...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-5
Parameters config – A config to use when generating the schema. Returns A pydantic model that can be used to validate output. invoke(input: Union[str, Dict], config: Optional[RunnableConfig] = None, **kwargs: Any) → Any¶ Transform a single input into an output. Override to implement. Parameters input – The input to the...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-6
by calling invoke() with each input. classmethod parse_file(path: Union[str, Path], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = No...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-7
Default implementation of transform, which buffers input and then calls stream. Subclasses should override this method if they can start producing output while input is still being generated. classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on fields based on this Model, globalns and lo...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-8
added to the run. with_retry(*, retry_if_exception_type: ~typing.Tuple[~typing.Type[BaseException], ...] = (<class 'Exception'>,), wait_exponential_jitter: bool = True, stop_after_attempt: int = 3) → Runnable[Input, Output]¶ Create a new Runnable that retries the original runnable on exceptions. Parameters retry_if_exc...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
7fd5c605b403-9
A map of constructor argument names to secret ids. For example,{“openai_api_key”: “OPENAI_API_KEY”} property output_schema: Type[pydantic.main.BaseModel]¶ The type of output this runnable produces specified as a pydantic model. Examples using ShellTool¶ Shell (bash) Human-in-the-loop Tool Validation
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellTool.html
e3c3d9cce7e4-0
langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool¶ class langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool[source]¶ Bases: BaseTool Tool used to generate images from a text-prompt. Create a new model by parsing and validating input data from keyword arguments. Raise...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-1
Whether to return the tool’s output directly. Setting this to True means that after the tool is called, the AgentExecutor will stop looping. param return_urls: Optional[bool] = False¶ param size: Optional[str] = '512x512'¶ param steamship: Steamship [Required]¶ param tags: Optional[List[str]] = None¶ Optional list of t...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-2
Subclasses should override this method if they can run asynchronously. async arun(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-3
The jsonpatch ops can be applied in order to construct state. async atransform(input: AsyncIterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-4
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-5
Get the namespace of the langchain object. For example, if the class is langchain.llms.openai.OpenAI, then the namespace is [“langchain”, “llms”, “openai”] get_output_schema(config: Optional[RunnableConfig] = None) → Type[BaseModel]¶ Get a pydantic model that can be used to validate output to the runnable. Runnables th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-6
classmethod is_lc_serializable() → bool¶ Is this class serializable? json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defa...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-7
run(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, run_name: Optional[st...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-8
Bind config to a Runnable, returning a new Runnable. with_fallbacks(fallbacks: Sequence[Runnable[Input, Output]], *, exceptions_to_handle: Tuple[Type[BaseException], ...] = (<class 'Exception'>,)) → RunnableWithFallbacksT[Input, Output]¶ Add fallbacks to a runnable, returning a new Runnable. Parameters fallbacks – A se...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
e3c3d9cce7e4-9
between retries stop_after_attempt – The maximum number of attempts to make before giving up Returns A new Runnable that retries the original runnable on exceptions. with_types(*, input_type: Optional[Type[Input]] = None, output_type: Optional[Type[Output]] = None) → Runnable[Input, Output]¶ Bind input and output types...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.tool.SteamshipImageGenerationTool.html
fa2c08cb47fd-0
langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool¶ class langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool[source]¶ Bases: EdenaiTool Tool that queries the Eden AI Object detection API. for api reference check edenai documentation: https://docs.edenai.co/reference/image_object_...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-1
Optional metadata associated with the tool. Defaults to None This metadata will be associated with each call to this tool, and passed as arguments to the handlers defined in callbacks. You can use these to eg identify a specific instance of a tool with its use case. param name: str = 'edenai_object_detection'¶ The uniq...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-2
e.g., if the underlying runnable uses an API which supports a batch mode. async ainvoke(input: Union[str, Dict], config: Optional[RunnableConfig] = None, **kwargs: Any) → Any¶ Default implementation of ainvoke, calls invoke from a thread. The default implementation allows usage of async code even if the runnable did no...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-3
Stream all output from a runnable, as reported to the callback system. This includes all inner runs of LLMs, Retrievers, Tools, etc. Output is streamed as Log objects, which include a list of jsonpatch ops that describe how the state of the run has changed in each step, and the final state of the run. The jsonpatch ops...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-4
Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, default_key: str = 'default', **kwargs: Union[Runnable[Input, Output], Callable[[], Runnable[Input, Output]]]) → RunnableSerializable[Input, Output]¶ configurable_fields(**kwargs: Union[ConfigurableField, C...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-5
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-6
Parameters input – The input to the runnable. config – A config to use when invoking the runnable. The config supports standard keys like ‘tags’, ‘metadata’ for tracing purposes, ‘max_concurrency’ for controlling how much work to do in parallel, and other keys. Please refer to the RunnableConfig for more details. Retur...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-7
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ run(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Op...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-8
classmethod validate(value: Any) → Model¶ with_config(config: Optional[RunnableConfig] = None, **kwargs: Any) → Runnable[Input, Output]¶ Bind config to a Runnable, returning a new Runnable. with_fallbacks(fallbacks: Sequence[Runnable[Input, Output]], *, exceptions_to_handle: Tuple[Type[BaseException], ...] = (<class 'E...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
fa2c08cb47fd-9
Create a new Runnable that retries the original runnable on exceptions. Parameters retry_if_exception_type – A tuple of exception types to retry on wait_exponential_jitter – Whether to add jitter to the wait time between retries stop_after_attempt – The maximum number of attempts to make before giving up Returns A new ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.image_objectdetection.EdenAiObjectDetectionTool.html
47325bd43e47-0
langchain.tools.office365.events_search.O365SearchEvents¶ class langchain.tools.office365.events_search.O365SearchEvents[source]¶ Bases: O365BaseTool Class for searching calendar events in Office 365 Free, but setup is required Create a new model by parsing and validating input data from keyword arguments. Raises Valid...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-1
and passed as arguments to the handlers defined in callbacks. You can use these to eg identify a specific instance of a tool with its use case. param name: str = 'events_search'¶ The unique name of the tool that clearly communicates its purpose. param return_direct: bool = False¶ Whether to return the tool’s output dir...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-2
Subclasses should override this method if they can run asynchronously. async arun(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-3
The jsonpatch ops can be applied in order to construct state. async atransform(input: AsyncIterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-4
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-5
Get the namespace of the langchain object. For example, if the class is langchain.llms.openai.OpenAI, then the namespace is [“langchain”, “llms”, “openai”] get_output_schema(config: Optional[RunnableConfig] = None) → Type[BaseModel]¶ Get a pydantic model that can be used to validate output to the runnable. Runnables th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-6
classmethod is_lc_serializable() → bool¶ Is this class serializable? json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defa...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-7
run(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, run_name: Optional[st...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-8
Bind config to a Runnable, returning a new Runnable. with_fallbacks(fallbacks: Sequence[Runnable[Input, Output]], *, exceptions_to_handle: Tuple[Type[BaseException], ...] = (<class 'Exception'>,)) → RunnableWithFallbacksT[Input, Output]¶ Add fallbacks to a runnable, returning a new Runnable. Parameters fallbacks – A se...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
47325bd43e47-9
between retries stop_after_attempt – The maximum number of attempts to make before giving up Returns A new Runnable that retries the original runnable on exceptions. with_types(*, input_type: Optional[Type[Input]] = None, output_type: Optional[Type[Output]] = None) → Runnable[Input, Output]¶ Bind input and output types...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.events_search.O365SearchEvents.html
cc520d0a6e7c-0
langchain.tools.nuclia.tool.NUASchema¶ class langchain.tools.nuclia.tool.NUASchema[source]¶ Bases: BaseModel Input for Nuclia Understanding API. action¶ Action to perform. Either push or pull. id¶ ID of the file to push or pull. path¶ Path to the file to push (needed only for push action). text¶ Text content to process...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.nuclia.tool.NUASchema.html
cc520d0a6e7c-1
Parameters include – fields to include in new model exclude – fields to exclude from new model, as with values this takes precedence over include update – values to change/add in the new model. Note: the data is not validated before creating the new model: you should trust this data deep – set to True to make a deep co...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.nuclia.tool.NUASchema.html
cc520d0a6e7c-2
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmet...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.nuclia.tool.NUASchema.html
61251f8183c2-0
langchain.tools.playwright.click.ClickTool¶ class langchain.tools.playwright.click.ClickTool[source]¶ Bases: BaseBrowserTool Tool for clicking on an element with the given CSS selector. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be par...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.click.ClickTool.html
61251f8183c2-1
Timeout (in ms) for Playwright to wait for element to be ready. param return_direct: bool = False¶ Whether to return the tool’s output directly. Setting this to True means that after the tool is called, the AgentExecutor will stop looping. param sync_browser: Optional['SyncBrowser'] = None¶ param tags: Optional[List[st...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.click.ClickTool.html
61251f8183c2-2
Subclasses should override this method if they can run asynchronously. async arun(tool_input: Union[str, Dict], verbose: Optional[bool] = None, start_color: Optional[str] = 'green', color: Optional[str] = 'green', callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.click.ClickTool.html
61251f8183c2-3
The jsonpatch ops can be applied in order to construct state. async atransform(input: AsyncIterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → AsyncIterator[Output]¶ Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if th...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.click.ClickTool.html
61251f8183c2-4
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.click.ClickTool.html
61251f8183c2-5
Instantiate the tool. classmethod from_orm(obj: Any) → Model¶ get_input_schema(config: Optional[RunnableConfig] = None) → Type[BaseModel]¶ The tool’s input schema. classmethod get_lc_namespace() → List[str]¶ Get the namespace of the langchain object. For example, if the class is langchain.llms.openai.OpenAI, then the n...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.click.ClickTool.html