# SelfAskWithSearchChain

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/agents/self_ask_with_search/base/SelfAskWithSearchChain)

[Deprecated] Chain that does self-ask with search.

## Signature

```python
SelfAskWithSearchChain(
    self,
    llm: BaseLanguageModel,
    search_chain: GoogleSerperAPIWrapper | SearchApiAPIWrapper | SerpAPIWrapper,
    **kwargs: Any = {},
)
```

## Extends

- `AgentExecutor`

## Constructors

```python
__init__(
    self,
    llm: BaseLanguageModel,
    search_chain: GoogleSerperAPIWrapper | SearchApiAPIWrapper | SerpAPIWrapper,
    **kwargs: Any = {},
)
```

| Name | Type |
|------|------|
| `llm` | `BaseLanguageModel` |
| `search_chain` | `GoogleSerperAPIWrapper \| SearchApiAPIWrapper \| SerpAPIWrapper` |


## ⚠️ Deprecated

Deprecated since version 0.1.0. Will be removed in version 1.0.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/6fb37dba71da807af60aa7b909f71f0625a666bf/libs/langchain/langchain_classic/agents/self_ask_with_search/base.py#L76)