agent-framework-copilotstudio 1.0.0b251001__py3-none-any.whl → 1.0.0b251016__py3-none-any.whl

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.

@@ -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
- Attributes:
35
- environmentid: Environment ID of environment with the Copilot Studio App..
36
- (Env var COPILOTSTUDIOAGENT__ENVIRONMENTID)
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
- (Env var COPILOTSTUDIOAGENT__SCHEMANAME)
38
+ Can be set via environment variable COPILOTSTUDIOAGENT__SCHEMANAME.
39
39
  agentappid: The app ID of the App Registration used to login.
40
- (Env var COPILOTSTUDIOAGENT__AGENTAPPID)
40
+ Can be set via environment variable COPILOTSTUDIOAGENT__AGENTAPPID.
41
41
  tenantid: The tenant ID of the App Registration used to login.
42
- (Env var COPILOTSTUDIOAGENT__TENANTID)
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-framework-copilotstudio
3
- Version: 1.0.0b251001
3
+ Version: 1.0.0b251016
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
@@ -0,0 +1,7 @@
1
+ agent_framework_copilotstudio/__init__.py,sha256=n5OgoxpgvDY7Ttcgjcd0UG55d2fDmtWt6NmgvxYQOaU,391
2
+ agent_framework_copilotstudio/_acquire_token.py,sha256=LzG4_U7jJyghDIndGJfV6tMq7LgfCpN2WaGXS8r83NQ,3675
3
+ agent_framework_copilotstudio/_agent.py,sha256=WB_nR2Yvt86FAlHeQj3Zd-XKMgSisfOHbH6bwSxUh5o,14558
4
+ agent_framework_copilotstudio-1.0.0b251016.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
5
+ agent_framework_copilotstudio-1.0.0b251016.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
6
+ agent_framework_copilotstudio-1.0.0b251016.dist-info/METADATA,sha256=CZk8S0dj4KTUwgXZ7PSXtgeitmo7aoVMFox6ooMLf3Y,4430
7
+ agent_framework_copilotstudio-1.0.0b251016.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- agent_framework_copilotstudio/__init__.py,sha256=n5OgoxpgvDY7Ttcgjcd0UG55d2fDmtWt6NmgvxYQOaU,391
2
- agent_framework_copilotstudio/_acquire_token.py,sha256=4g92MsaKbs7oPko7eXWFCYcph2HiufjoYAZJ9IqJb7A,3660
3
- agent_framework_copilotstudio/_agent.py,sha256=vtjGx0JH2FEzL5hsACk-Jd3nRfep65fQib8TBKDTGfo,13808
4
- agent_framework_copilotstudio-1.0.0b251001.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
5
- agent_framework_copilotstudio-1.0.0b251001.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
6
- agent_framework_copilotstudio-1.0.0b251001.dist-info/METADATA,sha256=tK0NES_3t-rjXNS-Vw2bsuu61EuqEDCfhq0pedUhGCE,4424
7
- agent_framework_copilotstudio-1.0.0b251001.dist-info/RECORD,,