Azure foundry agent_framework default tool

Today we are going to look at the tool available by default in agent_framework pypi package. 


A2A tool - get_a2a_tool

Web search tool - get_web_search_tool

File search tool - get_file_search_tool

Azure AI search tool - get_azure_ai_search_tool

bing custom search tool - get_bing_custom_search_tool

bing grounding tool - get_bing_grounding_tool

brower automation tool - get_browser_automation_tool

code interpreter tool - get_code_interpreter_tool

computer use tool - get_computer_use_tool

fabric tool - get_fabric_tool

image generation tool - get_image_generation_tool

mcp tool - get_mcp_tool

memory tool -  get_memory_search_tool

shell tool - get_shell_tool


To use these tool here are some code snippet for illustration only :-



import asyncio
import os

from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from azure.identity import AzureCliCredential

async def main() -> None:
    agent = Agent(
        client=FoundryChatClient(
            project_endpoint=os.environ["FOUNDRY_PROJECT_ENDPOINT"],
            model=os.environ["FOUNDRY_MODEL"],
            credential=AzureCliCredential(),
        ),
        instructions="You are a research assistant. Use web search to find current information.",
        tools=[
            FoundryChatClient.get_web_search_tool(),
        ],
    )

    result = await agent.run("What are the latest updates to Microsoft Foundry?")
    print(f"Agent: {result}")

if __name__ == "__main__":
    asyncio.run(main())

Comments

Popular posts from this blog

Windows SSH: Permissions for 'private-key' are too open

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20