id
stringlengths
14
15
text
stringlengths
13
2.7k
source
stringlengths
60
181
5155880eaa95-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.base.SlackBaseTool.html
5155880eaa95-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.base.SlackBaseTool.html
f2cb62545b4b-0
langchain_community.tools.powerbi.tool.QueryPowerBITool¶ class langchain_community.tools.powerbi.tool.QueryPowerBITool[source]¶ Bases: BaseTool Tool for querying a Power BI Dataset. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-1
param handle_tool_error: Optional[Union[bool, str, Callable[[ToolException], str]]] = False¶ Handle the content of the ToolException thrown. param llm_chain: Any = None¶ param max_iterations: int = 5¶ param metadata: Optional[Dict[str, Any]] = None¶ Optional metadata associated with the tool. Defaults to None This meta...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-2
Make tool callable. async abatch(inputs: List[Input], config: Optional[Union[RunnableConfig, List[RunnableConfig]]] = None, *, return_exceptions: bool = False, **kwargs: Optional[Any]) → List[Output]¶ Default implementation runs ainvoke in parallel using asyncio.gather. The default implementation of batch works well fo...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-3
Subclasses should override this method if they support streaming output. async astream_log(input: Any, config: Optional[RunnableConfig] = None, *, diff: bool = True, with_streamed_output_list: bool = True, include_names: Optional[Sequence[str]] = None, include_types: Optional[Sequence[str]] = None, include_tags: Option...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-4
Default implementation of atransform, which buffers input and calls astream. Subclasses should override this method if they can start producing output while input is still being generated. batch(inputs: List[Input], config: Optional[Union[RunnableConfig, List[RunnableConfig]]] = None, *, return_exceptions: bool = False...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-5
Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-6
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 that leverage the configurable_fields and configurable_alternatives methods will have a dynamic output schema tha...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-7
Generate a JSON representation of the model, include and exclude arguments as per dict(). encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps(). classmethod lc_id() → List[str]¶ A unique identifier for this class for serialization purposes. The unique identifier is a ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-8
stream(input: Input, config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → Iterator[Output]¶ Default implementation of stream, which calls invoke. Subclasses should override this method if they support streaming output. to_json() → Union[SerializedConstructor, SerializedNotImplemented]¶ to_json_not_implem...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-9
Bind lifecycle listeners to a Runnable, returning a new Runnable. on_start: Called before the runnable starts running, with the Run object. on_end: Called after the runnable finishes running, with the Run object. on_error: Called if the runnable throws an error, with the Run object. The Run object contains information ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f2cb62545b4b-10
property input_schema: Type[pydantic.main.BaseModel]¶ The type of input this runnable accepts specified as a pydantic model. property is_single_input: bool¶ Whether the tool only accepts a single input. property lc_attributes: Dict¶ List of attribute names that should be included in the serialized kwargs. These attribu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.powerbi.tool.QueryPowerBITool.html
f52ef23bfb22-0
langchain_community.tools.requests.tool.RequestsPatchTool¶ class langchain_community.tools.requests.tool.RequestsPatchTool[source]¶ Bases: BaseRequestsTool, BaseTool Tool for making a PATCH request to an API endpoint. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-1
You can use these to eg identify a specific instance of a tool with its use case. param name: str = 'requests_patch'¶ The unique name of the tool that clearly communicates its purpose. param requests_wrapper: TextRequestsWrapper [Required]¶ param return_direct: bool = False¶ Whether to return the tool’s output directly...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-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[...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-3
Parameters input – The input to the runnable. config – The config to use for the runnable. diff – Whether to yield diffs between each step, or the current state. with_streamed_output_list – Whether to yield the streamed_output list. include_names – Only include logs with these names. include_types – Only include logs w...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-4
Parameters include – A list of fields to include in the config schema. Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, *, default_key: str = 'default', prefix_keys: bool = False, **kwargs: Union[Runnable[Input, Output], Callable[[], Runnable[Input, Outpu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-6
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. Returns The output of the runnable. classmethod is_...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
f52ef23bfb22-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 ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.requests.tool.RequestsPatchTool.html
7211115a46e1-0
langchain_community.tools.multion.update_session.UpdateSessionSchema¶ class langchain_community.tools.multion.update_session.UpdateSessionSchema[source]¶ Bases: BaseModel Input for UpdateSessionTool. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.multion.update_session.UpdateSessionSchema.html
7211115a46e1-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.multion.update_session.UpdateSessionSchema.html
7211115a46e1-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.multion.update_session.UpdateSessionSchema.html
32293c13bd3c-0
langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun¶ class langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun[source]¶ Bases: BaseTool Tool that queries using the Wolfram Alpha SDK. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-1
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 tags: Optional[List[str]] = None¶ Optional list of tags associated with the tool. Defaults to None These tags will be associated with each...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-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[...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-3
Parameters input – The input to the runnable. config – The config to use for the runnable. diff – Whether to yield diffs between each step, or the current state. with_streamed_output_list – Whether to yield the streamed_output list. include_names – Only include logs with these names. include_types – Only include logs w...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-4
Parameters include – A list of fields to include in the config schema. Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, *, default_key: str = 'default', prefix_keys: bool = False, **kwargs: Union[Runnable[Input, Output], Callable[[], Runnable[Input, Outpu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-6
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. Returns The output of the runnable. classmethod is_...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
32293c13bd3c-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 ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.wolfram_alpha.tool.WolframAlphaQueryRun.html
d4c9c746557c-0
langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport¶ class langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport[source]¶ Bases: AmadeusBaseTool Tool for finding the closest airport to a particular location. Create a new model by parsing and validating input data from keyword argum...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-1
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 tags: Optional[List[str]] = None¶ Optional list of tags associated with the tool. Defaults to None These tags will be associated with each...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-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[...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-3
Parameters input – The input to the runnable. config – The config to use for the runnable. diff – Whether to yield diffs between each step, or the current state. with_streamed_output_list – Whether to yield the streamed_output list. include_names – Only include logs with these names. include_types – Only include logs w...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-4
Parameters include – A list of fields to include in the config schema. Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, *, default_key: str = 'default', prefix_keys: bool = False, **kwargs: Union[Runnable[Input, Output], Callable[[], Runnable[Input, Outpu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-6
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. Returns The output of the runnable. classmethod is_...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
d4c9c746557c-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 ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.amadeus.closest_airport.AmadeusClosestAirport.html
bed55581e7fb-0
langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool¶ class langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool[source]¶ Bases: BaseTool Tool for running python code in a sandboxed environment for data analysis. Create a new model by parsing and validating input data from keyword argume...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-1
param session: Any = 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 handlers defined in callbacks. You can use these to eg identify a specific instance of a tool with...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-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[...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-3
The jsonpatch ops can be applied in order to construct state. Parameters input – The input to the runnable. config – The config to use for the runnable. diff – Whether to yield diffs between each step, or the current state. with_streamed_output_list – Whether to yield the streamed_output list. include_names – Only incl...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-4
To mark a field as configurable, see the configurable_fields and configurable_alternatives methods. Parameters include – A list of fields to include in the config schema. Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, *, default_key: str = 'default', pr...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-6
install_system_packages(package_names: Union[str, List[str]]) → None[source]¶ Install system packages (via apt) in the sandbox. 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 t...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-7
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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-8
to_json_not_implemented() → SerializedNotImplemented¶ transform(input: Iterator[Input], config: Optional[RunnableConfig] = None, **kwargs: Optional[Any]) → Iterator[Output]¶ Default implementation of transform, which buffers input and then calls stream. Subclasses should override this method if they can start producing...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-9
on_start: Called before the runnable starts running, with the Run object. on_end: Called after the runnable finishes running, with the Run object. on_error: Called if the runnable throws an error, with the Run object. The Run object contains information about the run, including its id, type, input, output, error, start...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
bed55581e7fb-10
property input_schema: Type[pydantic.main.BaseModel]¶ The type of input this runnable accepts specified as a pydantic model. property is_single_input: bool¶ Whether the tool only accepts a single input. property lc_attributes: Dict¶ List of attribute names that should be included in the serialized kwargs. These attribu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.e2b_data_analysis.tool.E2BDataAnalysisTool.html
687c6845148e-0
langchain_community.tools.ddg_search.tool.DDGInput¶ class langchain_community.tools.ddg_search.tool.DDGInput[source]¶ Bases: BaseModel 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 query: str [Requir...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.ddg_search.tool.DDGInput.html
687c6845148e-1
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude. classmethod from_orm(obj: Any) → Model¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False,...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.ddg_search.tool.DDGInput.html
367041dd6e22-0
langchain_community.tools.slack.get_channel.SlackGetChannel¶ class langchain_community.tools.slack.get_channel.SlackGetChannel[source]¶ Bases: SlackBaseTool 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. pa...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-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 verbose: bool = False¶ Whether to log the tool...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-3
exclude_types – Exclude logs with these types. exclude_tags – Exclude logs with these tags. 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 sho...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-4
configurable_fields(**kwargs: Union[ConfigurableField, ConfigurableFieldSingleOption, ConfigurableFieldMultiOption]) → RunnableSerializable[Input, Output]¶ classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and __fields_set__ from trusted or pre-vali...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-5
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 namespace is [“langchai...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
367041dd6e22-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.slack.get_channel.SlackGetChannel.html
38ae357673e6-0
langchain_core.tools.SchemaAnnotationError¶ class langchain_core.tools.SchemaAnnotationError[source]¶ Raised when ‘args_schema’ is missing or has an incorrect type annotation.
https://api.python.langchain.com/en/latest/tools/langchain_core.tools.SchemaAnnotationError.html
8bac9bdbf97e-0
langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun¶ class langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun[source]¶ Bases: BaseTool Tool that queries the Google trends API. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-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 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 a...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-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[...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-3
Parameters input – The input to the runnable. config – The config to use for the runnable. diff – Whether to yield diffs between each step, or the current state. with_streamed_output_list – Whether to yield the streamed_output list. include_names – Only include logs with these names. include_types – Only include logs w...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-4
Parameters include – A list of fields to include in the config schema. Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, *, default_key: str = 'default', prefix_keys: bool = False, **kwargs: Union[Runnable[Input, Output], Callable[[], Runnable[Input, Outpu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-6
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. Returns The output of the runnable. classmethod is_...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
8bac9bdbf97e-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 ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.google_trends.tool.GoogleTrendsQueryRun.html
9e52fe4551a8-0
langchain_community.tools.office365.send_message.O365SendMessage¶ class langchain_community.tools.office365.send_message.O365SendMessage[source]¶ Bases: O365BaseTool Tool for sending an email in Office 365. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the inp...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-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 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 a...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-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[...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-3
Parameters input – The input to the runnable. config – The config to use for the runnable. diff – Whether to yield diffs between each step, or the current state. with_streamed_output_list – Whether to yield the streamed_output list. include_names – Only include logs with these names. include_types – Only include logs w...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-4
Parameters include – A list of fields to include in the config schema. Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, *, default_key: str = 'default', prefix_keys: bool = False, **kwargs: Union[Runnable[Input, Output], Callable[[], Runnable[Input, Outpu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-6
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. Returns The output of the runnable. classmethod is_...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
9e52fe4551a8-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 ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.office365.send_message.O365SendMessage.html
f0114a99a91c-0
langchain_community.tools.reddit_search.tool.RedditSearchRun¶ class langchain_community.tools.reddit_search.tool.RedditSearchRun[source]¶ Bases: BaseTool Tool that queries for posts on a subreddit. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data c...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-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 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 a...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-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[...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-3
Parameters input – The input to the runnable. config – The config to use for the runnable. diff – Whether to yield diffs between each step, or the current state. with_streamed_output_list – Whether to yield the streamed_output list. include_names – Only include logs with these names. include_types – Only include logs w...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-4
Parameters include – A list of fields to include in the config schema. Returns A pydantic model that can be used to validate config. configurable_alternatives(which: ConfigurableField, *, default_key: str = 'default', prefix_keys: bool = False, **kwargs: Union[Runnable[Input, Output], Callable[[], Runnable[Input, Outpu...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-6
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. Returns The output of the runnable. classmethod is_...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-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...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html
f0114a99a91c-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 ...
https://api.python.langchain.com/en/latest/tools/langchain_community.tools.reddit_search.tool.RedditSearchRun.html