agent-framework-github-copilot 1.0.0b260514__tar.gz → 1.0.0b260519__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-framework-github-copilot
3
- Version: 1.0.0b260514
3
+ Version: 1.0.0b260519
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.4.0,<2
19
+ Requires-Dist: agent-framework-core>=1.5.0,<2
20
20
  Requires-Dist: github-copilot-sdk>=1.0.0b2,<=1.0.0b2; 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
@@ -520,8 +520,11 @@ class RawGitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
520
520
 
521
521
  session_context = await self._run_before_providers(session=session, input_messages=input_messages, options=opts)
522
522
 
523
- # NOTE: session is created after providers run so that future provider-contributed
524
- # tools/config could be folded into runtime_options before session creation.
523
+ # Merge provider-contributed tools into runtime_options before session creation.
524
+ if session_context.tools:
525
+ existing = list(opts.get("tools") or [])
526
+ opts["tools"] = existing + list(session_context.tools)
527
+
525
528
  copilot_session = await self._get_or_create_session(session, streaming=False, runtime_options=opts)
526
529
 
527
530
  # Build the prompt from the full set of messages in the session context,
@@ -605,8 +608,11 @@ class RawGitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
605
608
 
606
609
  session_context = await self._run_before_providers(session=session, input_messages=input_messages, options=opts)
607
610
 
608
- # NOTE: session is created after providers run so that future provider-contributed
609
- # tools/config could be folded into runtime_options before session creation.
611
+ # Merge provider-contributed tools into runtime_options before session creation.
612
+ if session_context.tools:
613
+ existing = list(opts.get("tools") or [])
614
+ opts["tools"] = existing + list(session_context.tools)
615
+
610
616
  copilot_session = await self._get_or_create_session(session, streaming=True, runtime_options=opts)
611
617
 
612
618
  if _ctx_holder is not None:
@@ -891,7 +897,8 @@ class RawGitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
891
897
  mcp_servers = opts.get("mcp_servers") or self._mcp_servers or None
892
898
  provider = opts.get("provider") or self._provider or None
893
899
  instruction_directories = opts.get("instruction_directories", self._instruction_directories)
894
- tools = self._prepare_tools(self._tools) if self._tools else None
900
+ all_tools = list(self._tools or []) + list(opts.get("tools") or [])
901
+ tools = self._prepare_tools(all_tools) if all_tools else None
895
902
 
896
903
  return await self._client.create_session(
897
904
  on_permission_request=permission_handler,
@@ -929,7 +936,8 @@ class RawGitHubCopilotAgent(BaseAgent, Generic[OptionsT]):
929
936
  mcp_servers = opts.get("mcp_servers") or self._mcp_servers or None
930
937
  provider = opts.get("provider") or self._provider or None
931
938
  instruction_directories = opts.get("instruction_directories", self._instruction_directories)
932
- tools = self._prepare_tools(self._tools) if self._tools else None
939
+ all_tools = list(self._tools or []) + list(opts.get("tools") or [])
940
+ tools = self._prepare_tools(all_tools) if all_tools else None
933
941
 
934
942
  return await self._client.resume_session(
935
943
  session_id,
@@ -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.0b260514"
7
+ version = "1.0.0b260519"
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.4.0,<2",
26
+ "agent-framework-core>=1.5.0,<2",
27
27
  "github-copilot-sdk>=1.0.0b2,<=1.0.0b2; python_version >= '3.11'",
28
28
  ]
29
29