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:
Eduard van Valkenburg
2025-09-25 09:02:53 +02:00
committed by GitHub
Unverified
parent 366a7f7d47
commit 9355329dfd
169 changed files with 1159 additions and 1761 deletions
@@ -8,7 +8,7 @@ to support Agent Framework specific features like workflows, traces, and functio
from typing import Any, Literal
from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict
# Custom Agent Framework OpenAI event types for structured data
@@ -111,8 +111,7 @@ class AgentFrameworkExtraBody(BaseModel):
thread_id: str | None = None
input_data: dict[str, Any] | None = None
class Config:
extra = "allow" # Allow additional fields
model_config = ConfigDict(extra="allow")
# Agent Framework Request Model - Extending real OpenAI types
@@ -138,12 +137,10 @@ class AgentFrameworkRequest(BaseModel):
# Agent Framework extension - strongly typed
extra_body: AgentFrameworkExtraBody | None = None
class Config:
# Allow extra fields from OpenAI spec
extra = "allow"
entity_id: str | None = None # Allow entity_id as top-level field
model_config = ConfigDict(extra="allow")
def get_entity_id(self) -> str | None:
"""Get entity_id from either top-level field or extra_body."""
# Priority 1: Top-level entity_id field