mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: [BREAKING] updated structure and samples (#875)
* updated structure and samples * updated names and removed cross tests * updated projects etc * updated tests * updated test * test fixes * removed devui for now * updated all-tests task * removed old style configs * remove coverage from tests * updated to unit tests with all-tests * updated foundry everywhere * fix azure ai tests * fix merge tests * fix mypy
This commit is contained in:
committed by
GitHub
Unverified
parent
366a7f7d47
commit
9355329dfd
@@ -16,7 +16,7 @@ You will be prompted for the following information:
|
||||
- **package_description**: Brief description of the package (auto-generated from display name)
|
||||
- **version**: Starting version (default: 0.1.0b1)
|
||||
- **author_name**: Author name (default: Microsoft)
|
||||
- **author_email**: Author email (default: SK-Support@microsoft.com)
|
||||
- **author_email**: Author email (default: af-support@microsoft.com)
|
||||
- **include_cli_script**: Whether to include a CLI script (y/n)
|
||||
- **cli_script_name**: Name of CLI script if included
|
||||
|
||||
@@ -55,4 +55,4 @@ Don't forget to add your new package to the workspace:
|
||||
|
||||
1. Add to `python/pyproject.toml` dependencies
|
||||
2. Add to `[tool.uv.sources]` section
|
||||
3. Test installation with `uv run python -c "from agent_framework.lab.{name} import *"`
|
||||
3. Test installation with `uv run python -c "from agent_framework.lab.{name} import *"`
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"package_description": "{{ cookiecutter.package_display_name }} module for Microsoft Agent Framework.",
|
||||
"version": "0.1.0b1",
|
||||
"author_name": "Microsoft",
|
||||
"author_email": "SK-Support@microsoft.com",
|
||||
"author_email": "af-support@microsoft.com",
|
||||
"license": "MIT",
|
||||
"include_cli_script": ["y", "n"],
|
||||
"cli_script_name": "{{ cookiecutter.package_name }}_cli",
|
||||
@@ -17,4 +17,4 @@
|
||||
"_copy_without_render": [
|
||||
"*.py.typed"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -92,4 +92,4 @@ addopts = "--strict-markers --strict-config"
|
||||
markers = [
|
||||
"unit: marks tests as unit tests",
|
||||
"integration: marks tests as integration tests",
|
||||
]
|
||||
]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "agent-framework-lab-gaia"
|
||||
description = "GAIA benchmark module for Microsoft Agent Framework."
|
||||
authors = [{ name = "Microsoft", email = "SK-Support@microsoft.com"}]
|
||||
authors = [{ name = "Microsoft", email = "af-support@microsoft.com"}]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
version = "0.1.0b1"
|
||||
@@ -83,4 +83,4 @@ addopts = "--strict-markers --strict-config"
|
||||
markers = [
|
||||
"unit: marks tests as unit tests",
|
||||
"integration: marks tests as integration tests",
|
||||
]
|
||||
]
|
||||
|
||||
@@ -10,7 +10,7 @@ To run this sample, execute it from the root directory of the agent-framework re
|
||||
This avoids namespace package conflicts that occur when running from within the gaia package directory.
|
||||
"""
|
||||
|
||||
from agent_framework.foundry import FoundryChatClient
|
||||
from agent_framework.azure import AzureAIAgentClient
|
||||
from azure.identity.aio import AzureCliCredential
|
||||
|
||||
from agent_framework.lab.gaia import GAIA, Evaluation, GAIATelemetryConfig, Prediction, Task
|
||||
@@ -39,7 +39,7 @@ async def main() -> None:
|
||||
# Create a single agent once and reuse it for all tasks
|
||||
async with (
|
||||
AzureCliCredential() as credential,
|
||||
FoundryChatClient(async_credential=credential).create_agent(
|
||||
AzureAIAgentClient(async_credential=credential).create_agent(
|
||||
name="GaiaAgent",
|
||||
instructions="Solve tasks to your best ability.",
|
||||
) as agent,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "agent-framework-lab-lightning"
|
||||
description = "RL Module for Microsoft Agent Framework"
|
||||
authors = [{ name = "Microsoft", email = "SK-Support@microsoft.com"}]
|
||||
authors = [{ name = "Microsoft", email = "af-support@microsoft.com"}]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
version = "0.1.0b1"
|
||||
@@ -84,4 +84,4 @@ addopts = "--strict-markers --strict-config"
|
||||
markers = [
|
||||
"unit: marks tests as unit tests",
|
||||
"integration: marks tests as integration tests",
|
||||
]
|
||||
]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "agent-framework-lab-tau2"
|
||||
description = "Tau2 Benchmark for Agent Framework."
|
||||
authors = [{ name = "Microsoft", email = "SK-Support@microsoft.com"}]
|
||||
authors = [{ name = "Microsoft", email = "af-support@microsoft.com"}]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
version = "0.1.0b1"
|
||||
|
||||
Reference in New Issue
Block a user