AgentServiceBaseTool#

class langchain_azure_ai.agents.prebuilt.tools.AgentServiceBaseTool[source]#

Bases: BaseModel

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

… code-block:: python

from langchain_azure_ai.agents.prebuilt.tools import AgentServiceBaseTool from azure.ai.agents.models import CodeInterpreterTool

code_interpreter_tool = AgentServiceBaseTool(tool=CodeInterpreterTool())

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param tool: Tool [Required]#

The tool definition from Azure AI Foundry.