get_openapi_chain(
spec: OpenAPISpec | str,
llm: BaseLanguageModel | None = | Name | Type | Description |
|---|---|---|
spec* | OpenAPISpec | str | OpenAPISpec or url/file/text string corresponding to one. |
llm | BaseLanguageModel | None | Default: Nonelanguage model, should be an OpenAI function-calling model. |
prompt | BasePromptTemplate | None | Default: None |
request_chain | Chain | None | Default: None |
params | dict | None | Default: None |
headers | dict | None | Default: None |
verbose | bool | Default: False |
llm_chain_kwargs | dict | None | Default: None |
**kwargs | Any | Default: {} |
Create a chain for querying an API from a OpenAPI spec.
This function and all related utilities in this module are deprecated. Use LLM tool calling features directly with an HTTP client instead.
Main prompt template to use.
Chain for taking the functions output and executing the request.
Request parameters.
Request headers.
Whether to run the chain in verbose mode.
LLM chain additional keyword arguments.
Additional keyword arguments to pass to the chain.