Skip to content

Commit 18728f7

Browse files
committed
resolving comments
1 parent 9049f2a commit 18728f7

13 files changed

Lines changed: 23 additions & 383 deletions

File tree

  • libraries
    • microsoft-agents-a365-notifications
    • microsoft-agents-a365-observability-core
    • microsoft-agents-a365-observability-extensions-agentframework
    • microsoft-agents-a365-observability-extensions-langchain
    • microsoft-agents-a365-observability-extensions-openai
    • microsoft-agents-a365-observability-extensions-semantickernel
    • microsoft-agents-a365-runtime
    • microsoft-agents-a365-tooling-extensions-agentframework
    • microsoft-agents-a365-tooling-extensions-azureaifoundry
    • microsoft-agents-a365-tooling-extensions-openai
    • microsoft-agents-a365-tooling-extensions-semantickernel
    • microsoft-agents-a365-tooling

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Microsoft Agents 365 SDK - Python
1+
# Microsoft Agent 365 SDK - Python
22

33
[![PyPI](https://img.shields.io/pypi/v/microsoft-agents-a365-observability-core?label=PyPI&logo=pypi)](https://pypi.org/search/?q=microsoft-agents-a365)
44
[![PyPI Downloads](https://img.shields.io/pypi/dm/microsoft-agents-a365-observability-core?label=Downloads&logo=pypi)](https://pypi.org/search/?q=microsoft-agents-a365)
@@ -8,11 +8,11 @@
88
[![Contributors](https://img.shields.io/github/contributors/microsoft/Agent365-python?label=Contributors&logo=github)](https://github.com/microsoft/Agent365-python/graphs/contributors)
99

1010
> #### Note:
11-
> Use the information in this README to contribute to this open-source project. To learn about using this SDK in your projects, refer to the [Microsoft Agents 365 Developer documentation](https://learn.microsoft.com/microsoft-agent-365/developer/).
11+
> Use the information in this README to contribute to this open-source project. To learn about using this SDK in your projects, refer to the [Microsoft Agent 365 Developer documentation](https://learn.microsoft.com/microsoft-agent-365/developer/).
1212
13-
The Microsoft Agents 365 SDK extends the Microsoft 365 Agents SDK with enterprise-grade capabilities for building sophisticated agents. This SDK provides comprehensive tooling for observability, notifications, runtime utilities, and development tools that help developers create production-ready agents for platforms including M365, Teams, Copilot Studio, and Webchat.
13+
The Microsoft Agent 365 SDK extends the Microsoft 365 Agents SDK with enterprise-grade capabilities for building sophisticated agents. This SDK provides comprehensive tooling for observability, notifications, runtime utilities, and development tools that help developers create production-ready agents for platforms including M365, Teams, Copilot Studio, and Webchat.
1414

15-
The Microsoft Agents 365 SDK focuses on four core areas:
15+
The Microsoft Agent 365 SDK focuses on four core areas:
1616

1717
- **Observability**: Comprehensive tracing, caching, and monitoring capabilities for agent applications
1818
- **Notifications**: Agent notification services and models for handling user notifications
@@ -71,14 +71,14 @@ For more detailed build instructions, see the [BUILD.md](BUILD.md).
7171

7272
## Project Structure
7373

74-
- **libraries/microsoft-agents-a365-notifications**: Microsoft Agents 365 Notifications - Agent notification services and models
75-
- **libraries/microsoft-agents-a365-observability-core**: Microsoft Agents 365 Observability Core - Core observability functionality
74+
- **libraries/microsoft-agents-a365-notifications**: Microsoft Agent 365 Notifications SDK - Agent notification services and models
75+
- **libraries/microsoft-agents-a365-observability-core**: Microsoft Agent 365 Observability Core - Core observability functionality
7676
- **libraries/microsoft-agents-a365-observability-extensions-agentframework**: Agent Framework observability extensions
7777
- **libraries/microsoft-agents-a365-observability-extensions-langchain**: LangChain observability extensions
7878
- **libraries/microsoft-agents-a365-observability-extensions-openai**: OpenAI observability extensions
7979
- **libraries/microsoft-agents-a365-observability-extensions-semantickernel**: Semantic Kernel observability extensions
80-
- **libraries/microsoft-agents-a365-runtime**: Microsoft Agents 365 Runtime - Core runtime utilities and extensions
81-
- **libraries/microsoft-agents-a365-tooling**: Microsoft Agents 365 Tooling - Agent tooling and MCP integration
80+
- **libraries/microsoft-agents-a365-runtime**: Microsoft Agent 365 Runtime - Core runtime utilities and extensions
81+
- **libraries/microsoft-agents-a365-tooling**: Microsoft Agent 365 Tooling SDK - Agent tooling and MCP integration
8282
- **libraries/microsoft-agents-a365-tooling-extensions-agentframework**: Agent Framework tooling extensions
8383
- **libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry**: Azure AI Foundry tooling extensions
8484
- **libraries/microsoft-agents-a365-tooling-extensions-openai**: OpenAI tooling extensions
@@ -108,7 +108,7 @@ This project may contain trademarks or logos for projects, products, or services
108108

109109
## Useful Links
110110

111-
### Microsoft 365 Agents SDK
111+
### Microsoft 365 Agent SDK
112112

113113
The core SDK for building conversational AI agents for Microsoft 365 platforms.
114114

@@ -126,7 +126,7 @@ Enterprise-grade extensions for observability, notifications, runtime utilities,
126126
- [Agent365-python repository](https://github.com/microsoft/Agent365-python) - You are here
127127
- [Agent365-nodejs repository](https://github.com/microsoft/Agent365-nodejs)
128128
- [Agent365-Samples repository](https://github.com/microsoft/Agent365-Samples)
129-
- [Microsoft Agents 365 developer documentation](https://learn.microsoft.com/microsoft-agent-365/developer/)
129+
- [Microsoft Agent 365 developer documentation](https://learn.microsoft.com/microsoft-agent-365/developer/)
130130

131131
### Additional Resources
132132

libraries/microsoft-agents-a365-notifications/README.md

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,7 @@ pip install microsoft-agents-a365-notifications
1313

1414
## Usage
1515

16-
### Basic Notification Handler
17-
18-
```python
19-
from microsoft_agents_a365.notifications import AgentNotification, AgentNotificationActivity
20-
from microsoft_agents.activity import ChannelId
21-
from microsoft_agents.hosting.core import TurnContext, TurnState
22-
23-
# Initialize notification handler
24-
agent_notification = AgentNotification(
25-
app=app,
26-
known_subchannels=["email", "word", "excel"],
27-
)
28-
29-
# Register notification handler for specific channel
30-
@agent_notification.on_agent_notification(
31-
channel_id=ChannelId(channel="msteams", sub_channel="email")
32-
)
33-
async def handle_email_notification(
34-
context: TurnContext,
35-
state: TurnState,
36-
notification: AgentNotificationActivity
37-
):
38-
# Process email notification
39-
print(f"Received notification: {notification.notification_type}")
40-
await context.send_activity("Processing your email notification")
41-
```
42-
43-
### Handle Multiple Subchannels
44-
45-
```python
46-
# Handle all notifications for a channel (wildcard)
47-
@agent_notification.on_agent_notification(
48-
channel_id=ChannelId(channel="msteams", sub_channel="*")
49-
)
50-
async def handle_all_notifications(
51-
context: TurnContext,
52-
state: TurnState,
53-
notification: AgentNotificationActivity
54-
):
55-
# Route based on notification type
56-
if notification.notification_type == "email":
57-
await handle_email(context, notification)
58-
elif notification.notification_type == "document":
59-
await handle_document(context, notification)
60-
```
16+
For usage examples and detailed documentation, see the [Notification documentation](https://learn.microsoft.com/microsoft-agent-365/developer/notification?tabs=python) on Microsoft Learn.
6117

6218
## Support
6319

libraries/microsoft-agents-a365-observability-core/README.md

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -13,70 +13,7 @@ pip install microsoft-agents-a365-observability-core
1313

1414
## Usage
1515

16-
### Basic Configuration
17-
18-
```python
19-
from microsoft_agents_a365.observability.core import configure, get_tracer
20-
21-
# Configure observability with service details
22-
configure(
23-
service_name="my-agent-service",
24-
service_namespace="my.namespace"
25-
)
26-
27-
# Get tracer instance
28-
tracer = get_tracer()
29-
```
30-
31-
### Using Tracing Scopes
32-
33-
```python
34-
from microsoft_agents_a365.observability.core import (
35-
InvokeAgentScope,
36-
ExecuteToolScope,
37-
InferenceScope,
38-
InvokeAgentDetails,
39-
ToolCallDetails,
40-
InferenceCallDetails,
41-
AgentDetails,
42-
TenantDetails,
43-
Request
44-
)
45-
46-
# Trace agent invocation
47-
agent_details = AgentDetails(agent_id="my-agent", agent_name="My Agent")
48-
tenant_details = TenantDetails(tenant_id="tenant-123")
49-
request = Request(content="User query")
50-
51-
invoke_details = InvokeAgentDetails(
52-
details=agent_details,
53-
session_id="session-42"
54-
)
55-
56-
with InvokeAgentScope.start(invoke_details, tenant_details, request):
57-
# Agent execution code here
58-
result = await process_request()
59-
60-
# Trace tool execution
61-
tool_details = ToolCallDetails(
62-
tool_name="search_tool",
63-
tool_type="function"
64-
)
65-
66-
with ExecuteToolScope.start(tool_details, agent_details, tenant_details):
67-
# Tool execution code
68-
search_result = await execute_search()
69-
70-
# Trace LLM inference
71-
inference_details = InferenceCallDetails(
72-
operationName="chat",
73-
model="gpt-4"
74-
)
75-
76-
with InferenceScope.start(inference_details, agent_details, tenant_details, request):
77-
# LLM call
78-
response = await llm.complete(prompt)
79-
```
16+
For usage examples and detailed documentation, see the [Observability documentation](https://learn.microsoft.com/microsoft-agent-365/developer/observability?tabs=python) on Microsoft Learn.
8017

8118
## Support
8219

libraries/microsoft-agents-a365-observability-extensions-agentframework/README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,7 @@ pip install microsoft-agents-a365-observability-extensions-agentframework
1313

1414
## Usage
1515

16-
### Basic Configuration
17-
18-
```python
19-
from microsoft_agents_a365.observability.extensions.agentframework import (
20-
AgentFrameworkTraceInstrumentor
21-
)
22-
23-
# Initialize instrumentor
24-
instrumentor = AgentFrameworkTraceInstrumentor()
25-
26-
# Instrument your agent framework application
27-
instrumentor.instrument()
28-
29-
# Your agent code runs with automatic tracing
30-
# ...
31-
32-
# Optional: Uninstrument when done
33-
instrumentor.uninstrument()
34-
```
16+
For usage examples and detailed documentation, see the [Observability documentation](https://learn.microsoft.com/microsoft-agent-365/developer/observability?tabs=python) on Microsoft Learn.
3517

3618
## Support
3719

libraries/microsoft-agents-a365-observability-extensions-langchain/README.md

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,7 @@ pip install microsoft-agents-a365-observability-extensions-langchain
1313

1414
## Usage
1515

16-
### Basic Configuration
17-
18-
```python
19-
from microsoft_agents_a365.observability.core import configure
20-
from microsoft_agents_a365.observability.extensions.langchain import (
21-
CustomLangChainInstrumentor
22-
)
23-
24-
# Configure observability
25-
configure(
26-
service_name="my-langchain-agent",
27-
service_namespace="ai.agents"
28-
)
29-
30-
# Enable automatic instrumentation
31-
instrumentor = CustomLangChainInstrumentor()
32-
instrumentor.instrument()
33-
34-
# Your LangChain code is now automatically traced
35-
from langchain.chains import LLMChain
36-
from langchain.prompts import PromptTemplate
37-
38-
# All LangChain operations will be automatically instrumented
39-
chain = LLMChain(llm=llm, prompt=prompt_template)
40-
result = chain.run(input_text)
41-
```
16+
For usage examples and detailed documentation, see the [Observability documentation](https://learn.microsoft.com/microsoft-agent-365/developer/observability?tabs=python) on Microsoft Learn.
4217

4318
## Support
4419

libraries/microsoft-agents-a365-observability-extensions-openai/README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,7 @@ pip install microsoft-agents-a365-observability-extensions-openai
1313

1414
## Usage
1515

16-
### Basic Configuration
17-
18-
```python
19-
from microsoft_agents_a365.observability.core import configure
20-
from microsoft_agents_a365.observability.extensions.openai import (
21-
OpenAIAgentsTraceInstrumentor
22-
)
23-
24-
# Configure observability
25-
configure(
26-
service_name="my-openai-agent",
27-
service_namespace="ai.agents"
28-
)
29-
30-
# Enable automatic instrumentation
31-
instrumentor = OpenAIAgentsTraceInstrumentor()
32-
instrumentor.instrument()
33-
34-
# Your OpenAI Agents code is now automatically traced
35-
from openai import OpenAI
36-
37-
client = OpenAI()
38-
# All agent operations will be automatically instrumented
39-
```
16+
For usage examples and detailed documentation, see the [Observability documentation](https://learn.microsoft.com/microsoft-agent-365/developer/observability?tabs=python) on Microsoft Learn.
4017

4118
## Support
4219

libraries/microsoft-agents-a365-observability-extensions-semantickernel/README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,7 @@ pip install microsoft-agents-a365-observability-extensions-semantickernel
1313

1414
## Usage
1515

16-
### Basic Configuration
17-
18-
```python
19-
from microsoft_agents_a365.observability.core import configure
20-
from microsoft_agents_a365.observability.extensions.semantickernel import (
21-
SemanticKernelInstrumentor
22-
)
23-
24-
# Configure observability
25-
configure(
26-
service_name="my-semantic-kernel-agent",
27-
service_namespace="ai.agents"
28-
)
29-
30-
# Enable automatic instrumentation
31-
instrumentor = SemanticKernelInstrumentor()
32-
instrumentor.instrument()
33-
34-
# Your Semantic Kernel code is now automatically traced
35-
from semantic_kernel import Kernel
36-
37-
kernel = Kernel()
38-
# All kernel operations will be automatically instrumented
39-
```
16+
For usage examples and detailed documentation, see the [Observability documentation](https://learn.microsoft.com/microsoft-agent-365/developer/observability?tabs=python) on Microsoft Learn.
4017

4118
## Support
4219

libraries/microsoft-agents-a365-runtime/README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,7 @@ pip install microsoft-agents-a365-runtime
1313

1414
## Usage
1515

16-
### Power Platform API Discovery
17-
18-
```python
19-
from microsoft_agents_a365.runtime import (
20-
PowerPlatformApiDiscovery,
21-
ClusterCategory
22-
)
23-
24-
# Initialize API discovery for preprod environment
25-
api_discovery = PowerPlatformApiDiscovery(ClusterCategory.PREPROD)
26-
27-
# Discover API endpoint for an environment
28-
endpoint = api_discovery.discover_api(environment_id="env-123")
29-
print(f"API Endpoint: {endpoint}")
30-
```
31-
32-
### Get Authentication Scope
33-
34-
```python
35-
from microsoft_agents_a365.runtime import get_observability_authentication_scope
36-
37-
# Get authentication scope for observability services
38-
scope = get_observability_authentication_scope(environment_id="env-123")
39-
print(f"Auth Scope: {scope}")
40-
```
16+
For usage examples and detailed documentation, see the [Microsoft Agent 365 Developer documentation](https://learn.microsoft.com/microsoft-agent-365/developer/?tabs=python) on Microsoft Learn.
4117

4218
## Support
4319

libraries/microsoft-agents-a365-tooling-extensions-agentframework/README.md

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,7 @@ pip install microsoft-agents-a365-tooling-extensions-agentframework
1313

1414
## Usage
1515

16-
### Basic MCP Tool Registration
17-
18-
```python
19-
from microsoft_agents_a365.tooling.extensions.agentframework import (
20-
McpToolRegistrationService
21-
)
22-
from agent_framework.azure import AzureOpenAIChatClient
23-
24-
# Initialize the tool registration service
25-
mcp_service = McpToolRegistrationService()
26-
27-
# Create chat client
28-
chat_client = AzureOpenAIChatClient(
29-
endpoint="https://your-endpoint.openai.azure.com",
30-
api_key="your-api-key",
31-
model="gpt-4"
32-
)
33-
34-
# Add MCP tool servers to agent
35-
agent = await mcp_service.add_tool_servers_to_agent(
36-
chat_client=chat_client,
37-
agent_instructions="You are a helpful assistant",
38-
initial_tools=[], # Any initial tools
39-
agentic_app_id="your-agent-id",
40-
environment_id="your-environment-id",
41-
auth=authorization,
42-
turn_context=turn_context
43-
)
44-
45-
# Use the agent with registered MCP tools
46-
response = await agent.run("Help me with my task")
47-
```
16+
For usage examples and detailed documentation, see the [Tooling documentation](https://learn.microsoft.com/microsoft-agent-365/developer/tooling?tabs=python) on Microsoft Learn.
4817

4918
## Support
5019

0 commit comments

Comments
 (0)