Python: updated docstrings (#1225)

* updated docstrings

* fix tests and mypy

* hosted file search docstring update

* updated versions
This commit is contained in:
Eduard van Valkenburg
2025-10-06 18:04:39 +02:00
committed by GitHub
Unverified
parent b2ab9931fd
commit 714e7b50d4
32 changed files with 592 additions and 319 deletions
@@ -16,6 +16,7 @@ DEFAULT_SCOPES = ["https://api.powerplatform.com/.default"]
def acquire_token(
*,
client_id: str,
tenant_id: str,
username: str | None = None,
@@ -27,7 +28,7 @@ def acquire_token(
This function attempts to acquire a token silently first (using cached tokens),
and falls back to interactive authentication if needed.
Args:
Keyword Args:
client_id: The client ID of the application.
tenant_id: The tenant ID for authentication.
username: Optional username to filter accounts.
@@ -102,6 +102,8 @@ class CopilotStudioAgent(BaseAgent):
a new client will be created using the other parameters.
settings: Optional pre-configured ConnectionSettings. If not provided,
settings will be created from the other parameters.
Keyword Args:
id: id of the CopilotAgent
name: Name of the CopilotAgent
description: Description of the CopilotAgent
@@ -224,6 +226,8 @@ class CopilotStudioAgent(BaseAgent):
Args:
messages: The message(s) to send to the agent.
Keyword Args:
thread: The conversation thread associated with the message(s).
kwargs: Additional keyword arguments.
@@ -263,6 +267,8 @@ class CopilotStudioAgent(BaseAgent):
Args:
messages: The message(s) to send to the agent.
Keyword Args:
thread: The conversation thread associated with the message(s).
kwargs: Additional keyword arguments.