# AgentServiceBaseTool

> **Class** in `langchain_azure_ai`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-ai/agents/_v1/prebuilt/tools/AgentServiceBaseTool)

A tool that interacts with Azure AI Foundry Agent Service.

Use this class to wrap tools from Azure AI Foundry for use with
DeclarativeChatAgentNode.

Example:
```python
from langchain_azure_ai.agents.prebuilt.tools import AgentServiceBaseTool
from azure.ai.agents.models import CodeInterpreterTool

code_interpreter_tool = AgentServiceBaseTool(tool=CodeInterpreterTool())
```

If your tool requires further configuration, you may need to use the
Azure AI Foundry SDK directly to create and configure the tool.

## Signature

```python
AgentServiceBaseTool()
```

## Extends

- `BaseModel`

## Properties

- `model_config`
- `tool`

## ⚠️ Deprecated

Deprecated since version 1.1.0. Use langchain_azure_ai.agents.prebuilt.tools.AgentServiceBaseTool instead. `langchain_azure_ai.agents.v1.*` uses `azure-ai-agents` library which is deprecated. Use `langchain_azure_ai.agents.prebuilt.tools.*` instead, which uses the new `azure-ai-projects` library.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/7a6a664d617264df8dcb12fcfb1bacc09f21d504/libs/azure-ai/langchain_azure_ai/agents/_v1/prebuilt/tools.py#L15)