agent-framework-copilotstudio 1.0.0b251001__tar.gz → 1.0.0b251007__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of agent-framework-copilotstudio might be problematic. Click here for more details.
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/PKG-INFO +2 -2
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/README.md +1 -1
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/agent_framework_copilotstudio/_acquire_token.py +2 -1
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/agent_framework_copilotstudio/_agent.py +28 -7
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/pyproject.toml +1 -1
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/LICENSE +0 -0
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/agent_framework_copilotstudio/__init__.py +0 -0
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/tests/conftest.py +0 -0
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/tests/test_acquire_token.py +0 -0
- {agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/tests/test_copilot_agent.py +0 -0
{agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agent-framework-copilotstudio
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0b251007
|
|
4
4
|
Summary: Copilot Studio integration for Microsoft Agent Framework.
|
|
5
5
|
Author-email: Microsoft <af-support@microsoft.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -27,7 +27,7 @@ Project-URL: source, https://github.com/microsoft/agent-framework/tree/main/pyth
|
|
|
27
27
|
Please install this package via pip:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
pip install agent-framework-copilotstudio
|
|
30
|
+
pip install agent-framework-copilotstudio --pre
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Copilot Studio Agent
|
|
@@ -16,6 +16,7 @@ DEFAULT_SCOPES = ["https://api.powerplatform.com/.default"]
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def acquire_token(
|
|
19
|
+
*,
|
|
19
20
|
client_id: str,
|
|
20
21
|
tenant_id: str,
|
|
21
22
|
username: str | None = None,
|
|
@@ -27,7 +28,7 @@ def acquire_token(
|
|
|
27
28
|
This function attempts to acquire a token silently first (using cached tokens),
|
|
28
29
|
and falls back to interactive authentication if needed.
|
|
29
30
|
|
|
30
|
-
Args:
|
|
31
|
+
Keyword Args:
|
|
31
32
|
client_id: The client ID of the application.
|
|
32
33
|
tenant_id: The tenant ID for authentication.
|
|
33
34
|
username: Optional username to filter accounts.
|
|
@@ -31,18 +31,33 @@ class CopilotStudioSettings(AFBaseSettings):
|
|
|
31
31
|
with the encoding 'utf-8'. If the settings are not found in the .env file, the settings
|
|
32
32
|
are ignored; however, validation will fail alerting that the settings are missing.
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
environmentid: Environment ID of environment with the Copilot Studio App
|
|
36
|
-
|
|
34
|
+
Keyword Args:
|
|
35
|
+
environmentid: Environment ID of environment with the Copilot Studio App.
|
|
36
|
+
Can be set via environment variable COPILOTSTUDIOAGENT__ENVIRONMENTID.
|
|
37
37
|
schemaname: The agent identifier or schema name of the Copilot to use.
|
|
38
|
-
|
|
38
|
+
Can be set via environment variable COPILOTSTUDIOAGENT__SCHEMANAME.
|
|
39
39
|
agentappid: The app ID of the App Registration used to login.
|
|
40
|
-
|
|
40
|
+
Can be set via environment variable COPILOTSTUDIOAGENT__AGENTAPPID.
|
|
41
41
|
tenantid: The tenant ID of the App Registration used to login.
|
|
42
|
-
|
|
43
|
-
Parameters:
|
|
42
|
+
Can be set via environment variable COPILOTSTUDIOAGENT__TENANTID.
|
|
44
43
|
env_file_path: If provided, the .env settings are read from this file path location.
|
|
45
44
|
env_file_encoding: The encoding of the .env file, defaults to 'utf-8'.
|
|
45
|
+
|
|
46
|
+
Examples:
|
|
47
|
+
.. code-block:: python
|
|
48
|
+
|
|
49
|
+
from agent_framework_copilotstudio import CopilotStudioSettings
|
|
50
|
+
|
|
51
|
+
# Using environment variables
|
|
52
|
+
# Set COPILOTSTUDIOAGENT__ENVIRONMENTID=env-123
|
|
53
|
+
# Set COPILOTSTUDIOAGENT__SCHEMANAME=my-agent
|
|
54
|
+
settings = CopilotStudioSettings()
|
|
55
|
+
|
|
56
|
+
# Or passing parameters directly
|
|
57
|
+
settings = CopilotStudioSettings(environmentid="env-123", schemaname="my-agent")
|
|
58
|
+
|
|
59
|
+
# Or loading from a .env file
|
|
60
|
+
settings = CopilotStudioSettings(env_file_path="path/to/.env")
|
|
46
61
|
"""
|
|
47
62
|
|
|
48
63
|
env_prefix: ClassVar[str] = "COPILOTSTUDIOAGENT__"
|
|
@@ -87,6 +102,8 @@ class CopilotStudioAgent(BaseAgent):
|
|
|
87
102
|
a new client will be created using the other parameters.
|
|
88
103
|
settings: Optional pre-configured ConnectionSettings. If not provided,
|
|
89
104
|
settings will be created from the other parameters.
|
|
105
|
+
|
|
106
|
+
Keyword Args:
|
|
90
107
|
id: id of the CopilotAgent
|
|
91
108
|
name: Name of the CopilotAgent
|
|
92
109
|
description: Description of the CopilotAgent
|
|
@@ -209,6 +226,8 @@ class CopilotStudioAgent(BaseAgent):
|
|
|
209
226
|
|
|
210
227
|
Args:
|
|
211
228
|
messages: The message(s) to send to the agent.
|
|
229
|
+
|
|
230
|
+
Keyword Args:
|
|
212
231
|
thread: The conversation thread associated with the message(s).
|
|
213
232
|
kwargs: Additional keyword arguments.
|
|
214
233
|
|
|
@@ -248,6 +267,8 @@ class CopilotStudioAgent(BaseAgent):
|
|
|
248
267
|
|
|
249
268
|
Args:
|
|
250
269
|
messages: The message(s) to send to the agent.
|
|
270
|
+
|
|
271
|
+
Keyword Args:
|
|
251
272
|
thread: The conversation thread associated with the message(s).
|
|
252
273
|
kwargs: Additional keyword arguments.
|
|
253
274
|
|
|
@@ -4,7 +4,7 @@ description = "Copilot Studio integration for Microsoft Agent Framework."
|
|
|
4
4
|
authors = [{ name = "Microsoft", email = "af-support@microsoft.com"}]
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0b251007"
|
|
8
8
|
license-files = ["LICENSE"]
|
|
9
9
|
urls.homepage = "https://aka.ms/agent-framework"
|
|
10
10
|
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
|
{agent_framework_copilotstudio-1.0.0b251001 → agent_framework_copilotstudio-1.0.0b251007}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|