You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ci: no need to use yapf as we have pylint
* chore: remove MANIFEST.in since we are not using setuptools
* chore: move all files into module
* chore: update project
* docs: added instrutions on how to use just the core client
* chore: try limiting python runs to only the changed package
* Revert "chore: try limiting python runs to only the changed package"
This reverts commit e93b664.
* chore: add python core specific validation action
* chore: add build step for smoke test
Copy file name to clipboardExpand all lines: python/packages/microsoft_agents_m365copilot_core/README.md
+32-41Lines changed: 32 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,22 +61,18 @@ CLIENT_ID = "YOUR_CLIENT_ID"
61
61
62
62
> **Note:**
63
63
>
64
-
> This example shows how to make a call to the Microsoft 365 Copilot Retrieval API. To call this API, you need to install the [Microsoft 365 Copilot APIs Python Beta Client Library](https://github.com/microsoft/Agents-M365Copilot/tree/main/python/packages/microsoft_agents_m365copilot_beta), create a request object and then run the POST method on the request.
64
+
> This example shows how to make a call to the Microsoft 365 Copilot Retrieval API using just the core library. Alternately, you can use the [Microsoft 365 Copilot APIs Python Beta Client Library](https://github.com/microsoft/Agents-M365Copilot/tree/main/python/packages/microsoft_agents_m365copilot_beta) to create a request object and then run the POST method on the request.
65
65
66
66
```python
67
67
import asyncio
68
68
import os
69
69
from datetime import datetime
70
70
71
71
from azure.identity import DeviceCodeCredential
72
-
from dotenv import load_dotenv
73
-
from kiota_abstractions.api_error import APIError
72
+
from dotenv import load_dotenv
74
73
75
-
from microsoft_agents_m365copilot_beta import AgentsM365CopilotBetaServiceClient
76
-
from microsoft_agents_m365copilot_beta.generated.copilot.retrieval.retrieval_post_request_body import (
77
-
RetrievalPostRequestBody,
78
-
)
79
-
from microsoft_agents_m365copilot_beta.generated.models.retrieval_data_source import RetrievalDataSource
74
+
from microsoft_agents_m365copilot_core.src._enums import APIVersion
75
+
from microsoft_agents_m365copilot_core.src.client_factory import MicrosoftAgentsM365CopilotClientFactory
0 commit comments