agent-framework-github-copilot 1.0.0b260409__tar.gz → 1.0.0b260421__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.
- {agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/PKG-INFO +2 -2
- {agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/agent_framework_github_copilot/_agent.py +12 -1
- {agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/pyproject.toml +2 -2
- {agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/LICENSE +0 -0
- {agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/README.md +0 -0
- {agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/agent_framework_github_copilot/__init__.py +0 -0
{agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agent-framework-github-copilot
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0b260421
|
|
4
4
|
Summary: GitHub Copilot integration for Microsoft Agent Framework.
|
|
5
5
|
Author-email: Microsoft <af-support@microsoft.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
17
17
|
Classifier: Typing :: Typed
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: agent-framework-core>=1.0
|
|
19
|
+
Requires-Dist: agent-framework-core>=1.1.0,<2
|
|
20
20
|
Requires-Dist: github-copilot-sdk>=0.2.1,<=0.2.1; python_version >= '3.11'
|
|
21
21
|
Project-URL: homepage, https://aka.ms/agent-framework
|
|
22
22
|
Project-URL: issues, https://github.com/microsoft/agent-framework/issues
|
|
@@ -31,7 +31,7 @@ from agent_framework.exceptions import AgentException
|
|
|
31
31
|
try:
|
|
32
32
|
from copilot import CopilotClient, CopilotSession, SubprocessConfig
|
|
33
33
|
from copilot.generated.session_events import PermissionRequest, SessionEvent, SessionEventType
|
|
34
|
-
from copilot.session import MCPServerConfig, PermissionRequestResult, SystemMessageConfig
|
|
34
|
+
from copilot.session import MCPServerConfig, PermissionRequestResult, ProviderConfig, SystemMessageConfig
|
|
35
35
|
from copilot.tools import Tool as CopilotTool
|
|
36
36
|
from copilot.tools import ToolInvocation, ToolResult
|
|
37
37
|
except ImportError as _copilot_import_error:
|
|
@@ -120,6 +120,12 @@ class GitHubCopilotOptions(TypedDict, total=False):
|
|
|
120
120
|
Supports both local (stdio) and remote (HTTP/SSE) servers.
|
|
121
121
|
"""
|
|
122
122
|
|
|
123
|
+
provider: ProviderConfig
|
|
124
|
+
"""Custom API provider configuration for BYOK (Bring Your Own Key) scenarios.
|
|
125
|
+
Allows routing requests through your own OpenAI, Azure, or Anthropic endpoint
|
|
126
|
+
instead of the default GitHub Copilot backend.
|
|
127
|
+
"""
|
|
128
|
+
|
|
123
129
|
|
|
124
130
|
OptionsT = TypeVar(
|
|
125
131
|
"OptionsT",
|
|
@@ -232,6 +238,7 @@ class GitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
|
|
|
232
238
|
log_level = opts.pop("log_level", None)
|
|
233
239
|
on_permission_request: PermissionHandlerType | None = opts.pop("on_permission_request", None)
|
|
234
240
|
mcp_servers: dict[str, MCPServerConfig] | None = opts.pop("mcp_servers", None)
|
|
241
|
+
provider: ProviderConfig | None = opts.pop("provider", None)
|
|
235
242
|
|
|
236
243
|
self._settings = load_settings(
|
|
237
244
|
GitHubCopilotSettings,
|
|
@@ -247,6 +254,7 @@ class GitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
|
|
|
247
254
|
self._tools = normalize_tools(tools)
|
|
248
255
|
self._permission_handler = on_permission_request
|
|
249
256
|
self._mcp_servers = mcp_servers
|
|
257
|
+
self._provider = provider
|
|
250
258
|
self._default_options = opts
|
|
251
259
|
self._started = False
|
|
252
260
|
|
|
@@ -730,6 +738,7 @@ class GitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
|
|
|
730
738
|
opts.get("on_permission_request") or self._permission_handler or _deny_all_permissions
|
|
731
739
|
)
|
|
732
740
|
mcp_servers = opts.get("mcp_servers") or self._mcp_servers or None
|
|
741
|
+
provider = opts.get("provider") or self._provider or None
|
|
733
742
|
tools = self._prepare_tools(self._tools) if self._tools else None
|
|
734
743
|
|
|
735
744
|
return await self._client.create_session(
|
|
@@ -739,6 +748,7 @@ class GitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
|
|
|
739
748
|
system_message=system_message or None,
|
|
740
749
|
tools=tools or None,
|
|
741
750
|
mcp_servers=mcp_servers or None,
|
|
751
|
+
provider=provider or None,
|
|
742
752
|
)
|
|
743
753
|
|
|
744
754
|
async def _resume_session(self, session_id: str, streaming: bool) -> CopilotSession:
|
|
@@ -755,4 +765,5 @@ class GitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
|
|
|
755
765
|
streaming=streaming,
|
|
756
766
|
tools=tools or None,
|
|
757
767
|
mcp_servers=self._mcp_servers or None,
|
|
768
|
+
provider=self._provider or None,
|
|
758
769
|
)
|
|
@@ -4,7 +4,7 @@ description = "GitHub Copilot 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.0b260421"
|
|
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"
|
|
@@ -23,7 +23,7 @@ classifiers = [
|
|
|
23
23
|
"Typing :: Typed",
|
|
24
24
|
]
|
|
25
25
|
dependencies = [
|
|
26
|
-
"agent-framework-core>=1.0
|
|
26
|
+
"agent-framework-core>=1.1.0,<2",
|
|
27
27
|
"github-copilot-sdk>=0.2.1,<=0.2.1; python_version >= '3.11'",
|
|
28
28
|
]
|
|
29
29
|
|
{agent_framework_github_copilot-1.0.0b260409 → agent_framework_github_copilot-1.0.0b260421}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|