Skip to content

Commit 0ff3b13

Browse files
axelsrz=
authored andcommitted
Axsuarez/organization refactor (#70)
* removing intermediate folders * consolidating libraries and renaming * Restructuring and naming done. Exporting improvement pending. * Restructuring and naming done. Exporting improvement pending. --formatting * ADO Pipeline fix * Exporting top level classes * Updating samples * Integration fixes * Samples updates * Description updates
1 parent 5c6b780 commit 0ff3b13

13 files changed

Lines changed: 52 additions & 19 deletions

File tree

libraries/microsoft-agents-activity/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "microsoft-agents-activity"
77
version = "0.0.0a1"
8-
description = "A protocol library for Microsoft Agents"
8+
description = "Activity schema library for Microsoft Agents"
99
authors = [{name = "Microsoft Corporation"}]
1010
requires-python = ">=3.9"
1111
classifiers = [
@@ -18,4 +18,4 @@ dependencies = [
1818
]
1919

2020
[project.urls]
21-
"Homepage" = "https://github.com/microsoft/microsoft-agents-protocol"
21+
"Homepage" = "https://github.com/microsoft/Agents"

libraries/microsoft-agents-authentication-msal/microsoft/agents/authentication/msal/msal_connection_manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from typing import Dict, List, Optional
2+
<<<<<<< HEAD
23
from microsoft.agents.hosting.core import (
4+
=======
5+
from microsoft.agents.hosting.core.authorization import (
6+
>>>>>>> 9df9e21 (Axsuarez/organization refactor (#70))
37
AgentAuthConfiguration,
48
AccessTokenProviderBase,
59
ClaimsIdentity,

libraries/microsoft-agents-authentication-msal/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ dependencies = [
2121
]
2222

2323
[project.urls]
24-
"Homepage" = "https://github.com/microsoft/microsoft-agents-protocol"
24+
"Homepage" = "https://github.com/microsoft/Agents"

libraries/microsoft-agents-copilotstudio-client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ dependencies = [
1818
]
1919

2020
[project.urls]
21-
"Homepage" = "https://github.com/yourusername/microsoft-agents-client"
21+
"Homepage" = "https://github.com/microsoft/Agents"

libraries/microsoft-agents-hosting-aiohttp/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "microsoft-agents-hosting-aiohttp"
77
version = "0.0.0a1"
8-
description = "A protocol library for Microsoft Agents"
8+
description = "Integration library for Microsoft Agents with aiohttp"
99
authors = [{name = "Microsoft Corporation"}]
1010
requires-python = ">=3.9"
1111
classifiers = [
@@ -19,4 +19,4 @@ dependencies = [
1919
]
2020

2121
[project.urls]
22-
"Homepage" = "https://github.com/microsoft/Agents-for-python"
22+
"Homepage" = "https://github.com/microsoft/Agents"

libraries/microsoft-agents-hosting-core/pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "microsoft-agents-hosting-core"
77
version = "0.0.0a1"
8+
<<<<<<< HEAD
89
description = "A protocol library for Microsoft Agents"
10+
=======
11+
description = "Core library for Microsoft Agents"
12+
>>>>>>> 9df9e21 (Axsuarez/organization refactor (#70))
913
authors = [{name = "Microsoft Corporation"}]
1014
requires-python = ">=3.9"
1115
classifiers = [
@@ -22,4 +26,8 @@ dependencies = [
2226
]
2327

2428
[project.urls]
29+
<<<<<<< HEAD
2530
"Homepage" = "https://github.com/microsoft/microsoft-agents-protocol"
31+
=======
32+
"Homepage" = "https://github.com/microsoft/Agents"
33+
>>>>>>> 9df9e21 (Axsuarez/organization refactor (#70))

libraries/microsoft-agents-hosting-teams/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "microsoft-agents-hosting-teams"
77
version = "0.0.0a1"
8-
description = "A protocol library for Microsoft Agents"
8+
description = "Integration library for Microsoft Agents with Teams"
99
authors = [{name = "Microsoft Corporation"}]
1010
requires-python = ">=3.9"
1111
classifiers = [
@@ -19,4 +19,4 @@ dependencies = [
1919
]
2020

2121
[project.urls]
22-
"Homepage" = "https://github.com/microsoft/Agents-for-python"
22+
"Homepage" = "https://github.com/microsoft/Agents"

libraries/microsoft-agents-storage-blob/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ dependencies = [
2020
]
2121

2222
[project.urls]
23+
<<<<<<< HEAD
2324
"Homepage" = "https://github.com/microsoft/microsoft-agents-protocol"
25+
=======
26+
"Homepage" = "https://github.com/microsoft/Agents"
27+
>>>>>>> 9df9e21 (Axsuarez/organization refactor (#70))

test_samples/app_style/authorization_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

4-
from os import environ
4+
from os import environ, path
55
import re
66
import sys
77
import traceback
@@ -21,7 +21,7 @@
2121

2222
from shared import GraphClient, GitHubClient, start_server
2323

24-
load_dotenv()
24+
load_dotenv(path.join(path.dirname(__file__), ".env"))
2525

2626
agents_sdk_config = load_configuration_from_env(environ)
2727

test_samples/app_style/emtpy_agent.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@
77
from aiohttp.web import Application, Request, Response, run_app
88
from dotenv import load_dotenv
99

10-
from os import environ
10+
from os import environ, path
1111
from microsoft.agents.hosting.aiohttp import (
1212
CloudAdapter,
1313
jwt_authorization_middleware,
1414
start_agent_process,
1515
)
16+
from microsoft.agents.hosting.core import (
17+
Authorization,
18+
AgentApplication,
19+
TurnState,
20+
TurnContext,
21+
MemoryStorage,
1622
from microsoft.agents.hosting.core import (
1723
Authorization,
1824
AgentApplication,
@@ -23,7 +29,7 @@
2329
from microsoft.agents.authentication.msal import MsalConnectionManager
2430
from microsoft.agents.activity import load_configuration_from_env
2531

26-
load_dotenv()
32+
load_dotenv(path.join(path.dirname(__file__), ".env"))
2733

2834
agents_sdk_config = load_configuration_from_env(environ)
2935

@@ -34,6 +40,7 @@
3440

3541
AGENT_APP = AgentApplication[TurnState](
3642
storage=STORAGE, adapter=ADAPTER, authorization=AUTHORIZATION, **agents_sdk_config
43+
storage=STORAGE, adapter=ADAPTER, authorization=AUTHORIZATION, **agents_sdk_config
3744
)
3845

3946

0 commit comments

Comments
 (0)