SelfAskWithSearchChain(
self,
llm: BaseLanguageModel,
search_chain: GoogleSerperAPIWrapper | SearchApiAPIWrapper | SerpAPIWrapperCreate from agent and tools.
Validate that tools are compatible with agent.
Convert runnable to agent if passed in.
Raise error - saving not supported for Agent Executors.
Save the underlying agent.
Enables iteration over steps taken to reach final output.
Lookup tool by name.
Enables streaming over steps taken to reach final output.
Async enables streaming over steps taken to reach final output.
Optional memory object.
Optional list of callback handlers (or callback manager).
Whether or not run in verbose mode. In verbose mode, some intermediate logs
Optional list of tags associated with the chain.
Optional metadata associated with the chain.
[DEPRECATED] Use callbacks instead.
Keys expected to be in the chain input.
Keys expected to be in the chain output.
| Name | Type |
|---|---|
| llm | BaseLanguageModel |
| search_chain | GoogleSerperAPIWrapper | SearchApiAPIWrapper | SerpAPIWrapper |
[Deprecated] Chain that does self-ask with search.
Set the chain verbosity.