Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions foundry-samples.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.2.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{5D20AA90-6969-D8BD-9DCD-8634F4692FDA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "agent-catalog", "agent-catalog", "{16876C7D-E0C1-D2DF-BFEC-64162D0AD55C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "msft-agent-samples", "msft-agent-samples", "{D3494D53-BD9A-965C-E68F-9DD538442676}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "foundry-agent-service-sdk", "foundry-agent-service-sdk", "{5B086002-1269-14D2-55B4-387D0035AC7C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "a2a-agent", "a2a-agent", "{FA2213FC-CB04-AF3C-BD53-1AA87ADD42FC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "a2a", "samples\agent-catalog\msft-agent-samples\foundry-agent-service-sdk\a2a-agent\a2a.csproj", "{BC6566E7-A157-761A-F78C-00369AB21694}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BC6566E7-A157-761A-F78C-00369AB21694}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC6566E7-A157-761A-F78C-00369AB21694}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC6566E7-A157-761A-F78C-00369AB21694}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC6566E7-A157-761A-F78C-00369AB21694}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{16876C7D-E0C1-D2DF-BFEC-64162D0AD55C} = {5D20AA90-6969-D8BD-9DCD-8634F4692FDA}
{D3494D53-BD9A-965C-E68F-9DD538442676} = {16876C7D-E0C1-D2DF-BFEC-64162D0AD55C}
{5B086002-1269-14D2-55B4-387D0035AC7C} = {D3494D53-BD9A-965C-E68F-9DD538442676}
{FA2213FC-CB04-AF3C-BD53-1AA87ADD42FC} = {5B086002-1269-14D2-55B4-387D0035AC7C}
{BC6566E7-A157-761A-F78C-00369AB21694} = {FA2213FC-CB04-AF3C-BD53-1AA87ADD42FC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D7409907-4201-4979-AAB5-254C753A2EC4}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from agent_framework import Agent, AgentSession
from agent_framework.foundry import FoundryChatClient
from azure.ai.agentserver.invocations import InvocationAgentServerHost
from agent_framework.observability import enable_instrumentation
from azure.identity import DefaultAzureCredential
from dotenv import load_dotenv
from starlette.requests import Request
Expand All @@ -14,6 +15,9 @@
# Load environment variables from .env file
load_dotenv()

# Enable instrumentation for observability
enable_instrumentation(enable_sensitive_data=True)


# In-memory session store — keyed by session ID.
# WARNING: This is lost on restart. Use durable storage in production.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from agent_framework_foundry_hosting import ResponsesHostServer
from agent_framework.observability import enable_instrumentation
from azure.identity import DefaultAzureCredential
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

# Enable instrumentation for observability
enable_instrumentation(enable_sensitive_data=True)


def main():
client = FoundryChatClient(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from agent_framework import Agent, tool
from agent_framework.foundry import FoundryChatClient
from agent_framework_foundry_hosting import ResponsesHostServer
from agent_framework.observability import enable_instrumentation
from azure.identity import DefaultAzureCredential
from dotenv import load_dotenv
from pydantic import Field
Expand All @@ -14,6 +15,9 @@
# Load environment variables from .env file
load_dotenv()

# Enable instrumentation for observability
enable_instrumentation(enable_sensitive_data=True)


@tool(approval_mode="never_require")
def get_weather(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from agent_framework_foundry_hosting import ResponsesHostServer
from agent_framework.observability import enable_instrumentation
from azure.identity import DefaultAzureCredential
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

# Enable instrumentation for observability
enable_instrumentation(enable_sensitive_data=True)

logger = logging.getLogger(__name__)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
from agent_framework import Agent, MCPStreamableHTTPTool
from agent_framework.foundry import FoundryChatClient
from agent_framework_foundry_hosting import ResponsesHostServer
from agent_framework.observability import enable_instrumentation
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

# Enable instrumentation for observability
enable_instrumentation(enable_sensitive_data=True)

def resolve_toolbox_endpoint() -> str:
"""Resolve the toolbox MCP endpoint URL."""
project_endpoint = os.environ["FOUNDRY_PROJECT_ENDPOINT"].rstrip("/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
from agent_framework import Agent, AgentExecutor, WorkflowBuilder
from agent_framework.foundry import FoundryChatClient
from agent_framework_foundry_hosting import ResponsesHostServer
from agent_framework.observability import enable_instrumentation
from azure.identity import DefaultAzureCredential
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

# Enable instrumentation for observability
enable_instrumentation(enable_sensitive_data=True)


def main():
client = FoundryChatClient(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
from agent_framework.foundry import FoundryChatClient
from agent_framework_declarative import WorkflowFactory
from agent_framework_foundry_hosting import ResponsesHostServer
from agent_framework.observability import enable_instrumentation
from azure.identity import DefaultAzureCredential
from dotenv import load_dotenv
from pydantic import BaseModel, Field

# Load environment variables from .env file
load_dotenv()

# Enable instrumentation for observability
enable_instrumentation(enable_sensitive_data=True)


# --- Structured triage response --------------------------------------------------

Expand Down