Instantiate the tool from the specified path and method.
from_llm_and_method(
cls,
llm: BaseLanguageModel,
path: str,
method: str,
spec: OpenAPISpec,
requests: Optional[Requests] = None,
verbose: bool = False,
return_intermediate_steps: bool = False,
**kwargs: Any = {}
) -> 'NLATool'| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | The language model to use. |
path* | str | The path of the API. |
method* | str | The method of the API. |
spec* | OpenAPISpec | The OpenAPI spec. |
requests | Optional[Requests] | Default: NoneOptional requests object. Default is None. |
verbose | bool | Default: FalseWhether to print verbose output. Default is False. |
return_intermediate_steps | bool | Default: FalseWhether to return intermediate steps. Default is False. |
kwargs | Any | Default: {}Additional arguments. |