id
stringlengths
14
16
text
stringlengths
13
2.7k
source
stringlengths
57
178
f78cc8ec5c7e-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.e2b_data_analysis.tool.E2BDataAnalysisTool.html
860281dcc718-0
langchain.tools.powerbi.tool.QueryPowerBITool¶ class langchain.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 to form a valid mode...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-1
param handle_tool_error: Optional[Union[bool, str, Callable[[ToolException], str]]] = False¶ Handle the content of the ToolException thrown. param llm_chain: langchain.chains.llm.LLMChain [Required]¶ param max_iterations: int = 5¶ param metadata: Optional[Dict[str, Any]] = None¶ Optional metadata associated with the to...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-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...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-3
Subclasses should override this method if they support streaming output. async astream_log(input: Any, config: Optional[RunnableConfig] = None, *, diff: bool = True, include_names: Optional[Sequence[str]] = None, include_types: Optional[Sequence[str]] = None, include_tags: Optional[Sequence[str]] = None, exclude_names:...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-4
e.g., if the underlying runnable uses an API which supports a batch mode. bind(**kwargs: Any) → Runnable[Input, Output]¶ Bind arguments to a Runnable, returning a new Runnable. config_schema(*, include: Optional[Sequence[str]] = None) → Type[BaseModel]¶ The type of config this runnable accepts specified as a pydantic m...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-5
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 copy of the model Returns new model instance dict(*, i...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-6
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 runnable. config – A config to use when invoking the runnable. ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-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...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
860281dcc718-8
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.powerbi.tool.QueryPowerBITool.html
860281dcc718-9
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.powerbi.tool.QueryPowerBITool.html
860281dcc718-10
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.
lang/api.python.langchain.com/en/latest/tools/langchain.tools.powerbi.tool.QueryPowerBITool.html
b873894f93a7-0
langchain.tools.openapi.utils.api_models.APIOperation¶ class langchain.tools.openapi.utils.api_models.APIOperation[source]¶ Bases: BaseModel A model for a single API operation. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to fo...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.openapi.utils.api_models.APIOperation.html
b873894f93a7-1
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 copy of the model Returns new model instance dict(*, i...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.openapi.utils.api_models.APIOperation.html
b873894f93a7-2
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 parse_file(path: Union[str, Path], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.openapi.utils.api_models.APIOperation.html
4e80c2a8cf74-0
langchain.tools.amadeus.base.AmadeusBaseTool¶ class langchain.tools.amadeus.base.AmadeusBaseTool[source]¶ Bases: BaseTool Base Tool for Amadeus. 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_sch...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-1
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’s progress. __call__(tool_input: str, callbacks: Optional[Union[...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.amadeus.base.AmadeusBaseTool.html
4e80c2a8cf74-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.
lang/api.python.langchain.com/en/latest/tools/langchain.tools.amadeus.base.AmadeusBaseTool.html
fa5c47bd220a-0
langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool¶ class langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool[source]¶ Bases: EdenaiTool Tool that queries the Eden AI Invoice parsing API. for api reference check edenai documentation: https://docs.edenai.co/reference/ocr_invoice_parser_creat...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-1
Handle the content of the ToolException thrown. param is_async: bool = False¶ param language: Optional[str] = None¶ language of the image passed to the model. param metadata: Optional[Dict[str, Any]] = None¶ Optional metadata associated with the tool. Defaults to None This metadata will be associated with each call to ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-2
Default implementation runs ainvoke in parallel using asyncio.gather. 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. async ainvoke(input: Union[str...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-3
Subclasses should override this method if they support streaming output. async astream_log(input: Any, config: Optional[RunnableConfig] = None, *, diff: bool = True, include_names: Optional[Sequence[str]] = None, include_types: Optional[Sequence[str]] = None, include_tags: Optional[Sequence[str]] = None, exclude_names:...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-4
e.g., if the underlying runnable uses an API which supports a batch mode. bind(**kwargs: Any) → Runnable[Input, Output]¶ Bind arguments to a Runnable, returning a new Runnable. config_schema(*, include: Optional[Sequence[str]] = None) → Type[BaseModel]¶ The type of config this runnable accepts specified as a pydantic m...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-5
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 copy of the model Returns new model instance dict(*, i...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-6
static get_user_agent() → str¶ 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 runnable. config – A config to use when invoking the runnable. The config supports standard ke...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-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...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-8
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.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-9
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.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
fa5c47bd220a-10
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 EdenAiParsingInvoiceTool¶ Eden AI
lang/api.python.langchain.com/en/latest/tools/langchain.tools.edenai.ocr_invoiceparser.EdenAiParsingInvoiceTool.html
18201625e4fc-0
langchain.tools.json.tool.JsonSpec¶ class langchain.tools.json.tool.JsonSpec[source]¶ Bases: BaseModel Base class for JSON spec. 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 dict_: Dict [Required]¶ ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.json.tool.JsonSpec.html
18201625e4fc-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.json.tool.JsonSpec.html
18201625e4fc-2
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 = None, encoding: unicode = 'utf8', proto...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.json.tool.JsonSpec.html
b305653cfb7d-0
langchain.tools.eleven_labs.models.ElevenLabsModel¶ class langchain.tools.eleven_labs.models.ElevenLabsModel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶ Models available for Eleven Labs Text2Speech. MULTI_LINGUAL = 'eleven_multilingual_v1'¶ MONO_LINGUAL = 'eleven_monoli...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.eleven_labs.models.ElevenLabsModel.html
2484b5735589-0
langchain.tools.google_scholar.tool.GoogleScholarQueryRun¶ class langchain.tools.google_scholar.tool.GoogleScholarQueryRun[source]¶ Bases: BaseTool Tool that queries the Google search API. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
2484b5735589-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.google_scholar.tool.GoogleScholarQueryRun.html
23fe46ff7d6f-0
langchain.tools.shell.tool.ShellInput¶ class langchain.tools.shell.tool.ShellInput[source]¶ Bases: BaseModel Commands for the Bash Shell tool. 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 commands: ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.shell.tool.ShellInput.html
23fe46ff7d6f-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.shell.tool.ShellInput.html
23fe46ff7d6f-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.shell.tool.ShellInput.html
90bc16025971-0
langchain.tools.multion.create_session.CreateSessionSchema¶ class langchain.tools.multion.create_session.CreateSessionSchema[source]¶ Bases: BaseModel Input for CreateSessionTool. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.multion.create_session.CreateSessionSchema.html
90bc16025971-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.multion.create_session.CreateSessionSchema.html
90bc16025971-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.multion.create_session.CreateSessionSchema.html
97e10b188bc8-0
langchain.tools.amadeus.flight_search.FlightSearchSchema¶ class langchain.tools.amadeus.flight_search.FlightSearchSchema[source]¶ Bases: BaseModel Schema for the AmadeusFlightSearch tool. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be p...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.amadeus.flight_search.FlightSearchSchema.html
97e10b188bc8-1
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...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.amadeus.flight_search.FlightSearchSchema.html
97e10b188bc8-2
classmethod from_orm(obj: Any) → Model¶ 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_defaults: bool = False, exclude_n...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.amadeus.flight_search.FlightSearchSchema.html
64f9271c876d-0
langchain.tools.gmail.utils.import_google¶ langchain.tools.gmail.utils.import_google() → Tuple[Request, Credentials][source]¶ Import google libraries. Returns Request and Credentials classes. Return type Tuple[Request, Credentials]
lang/api.python.langchain.com/en/latest/tools/langchain.tools.gmail.utils.import_google.html
9cf97f4032b3-0
langchain.tools.ainetwork.rule.AINRuleOps¶ class langchain.tools.ainetwork.rule.AINRuleOps[source]¶ Bases: AINBaseTool Tool for owner operations. 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_sc...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-1
param callbacks: Callbacks = None¶ Callbacks to be called during tool execution. param description: str = "\nCovers the write `rule` for the AINetwork Blockchain database. The SET type specifies write permissions using the `eval` variable as a JavaScript eval string.\nIn order to AINvalueOps with SET at the path, the e...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-2
param interface: Ain [Optional]¶ The interface object for the AINetwork Blockchain. param metadata: Optional[Dict[str, Any]] = None¶ 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. Yo...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-3
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.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-4
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.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-5
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.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-6
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.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-7
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_...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-8
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.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-9
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.ainetwork.rule.AINRuleOps.html
9cf97f4032b3-10
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.ainetwork.rule.AINRuleOps.html
debd21769329-0
langchain.tools.office365.messages_search.SearchEmailsInput¶ class langchain.tools.office365.messages_search.SearchEmailsInput[source]¶ Bases: BaseModel Input for SearchEmails Tool. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed ...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.messages_search.SearchEmailsInput.html
debd21769329-1
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...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.messages_search.SearchEmailsInput.html
debd21769329-2
classmethod from_orm(obj: Any) → Model¶ 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_defaults: bool = False, exclude_n...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.office365.messages_search.SearchEmailsInput.html
4e8f0b29bebf-0
langchain.tools.file_management.delete.DeleteFileTool¶ class langchain.tools.file_management.delete.DeleteFileTool[source]¶ Bases: BaseFileToolMixin, BaseTool Tool that deletes a file. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be pars...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-1
The final path will be chosen relative to root_dir if specified. 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 ident...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
4e8f0b29bebf-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.file_management.delete.DeleteFileTool.html
5b5045d847a4-0
langchain.tools.vectorstore.tool.VectorStoreQAWithSourcesTool¶ class langchain.tools.vectorstore.tool.VectorStoreQAWithSourcesTool[source]¶ Bases: BaseVectorStoreTool, BaseTool Tool for the VectorDBQAWithSources chain. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationErro...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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 vectorstore: VectorStore [Required]¶ param ver...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-5
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 [“langchain”, “llms”, “openai”] get_output_schema(config: Optional[RunnableConfig] = None) → Type[BaseModel]¶ Get a pydantic mo...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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.vectorstore.tool.VectorStoreQAWithSourcesTool.html
5b5045d847a4-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.vectorstore.tool.VectorStoreQAWithSourcesTool.html
6d1eb718f3f2-0
langchain.tools.steamship_image_generation.utils.make_image_public¶ langchain.tools.steamship_image_generation.utils.make_image_public(client: Steamship, block: Block) → str[source]¶ Upload a block to a signed URL and return the public URL.
lang/api.python.langchain.com/en/latest/tools/langchain.tools.steamship_image_generation.utils.make_image_public.html
8ec113d4807b-0
langchain.tools.playwright.extract_hyperlinks.ExtractHyperlinksTool¶ class langchain.tools.playwright.extract_hyperlinks.ExtractHyperlinksTool[source]¶ Bases: BaseBrowserTool Extract all hyperlinks on the page. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the...
lang/api.python.langchain.com/en/latest/tools/langchain.tools.playwright.extract_hyperlinks.ExtractHyperlinksTool.html
8ec113d4807b-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.extract_hyperlinks.ExtractHyperlinksTool.html
8ec113d4807b-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.extract_hyperlinks.ExtractHyperlinksTool.html
8ec113d4807b-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.extract_hyperlinks.ExtractHyperlinksTool.html
8ec113d4807b-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.extract_hyperlinks.ExtractHyperlinksTool.html