Python: [BREAKING] parameter naming and other fixes (#1255)

* parameter naming and other fixes

* fix test

* fix azure openai responses decorator ordering

* fix test

* fix mypy

* fixes in options handling

* fix tests

* final fixes

* exclude macos tests

* fix model param
This commit is contained in:
Eduard van Valkenburg
2025-10-07 23:18:48 +02:00
committed by GitHub
Unverified
parent 1a81ed202e
commit 76900f0eab
22 changed files with 327 additions and 378 deletions
@@ -189,7 +189,7 @@ class EntityDiscovery:
framework="agent_framework",
tools=[str(tool) for tool in (tools_list or [])],
instructions=instructions,
model=model,
model_id=model,
chat_client_type=chat_client_type,
context_providers=context_providers_list,
middleware=middleware_list,
@@ -547,7 +547,7 @@ class EntityDiscovery:
description=description,
tools=tools_union,
instructions=instructions,
model=model,
model_id=model,
chat_client_type=chat_client_type,
context_providers=context_providers_list,
middleware=middleware_list,
@@ -67,7 +67,7 @@ class SessionManager:
logger.debug(f"Closed session: {session_id}")
def add_request_record(
self, session_id: str, entity_id: str, executor_name: str, request_input: Any, model: str
self, session_id: str, entity_id: str, executor_name: str, request_input: Any, model_id: str
) -> str:
"""Add a request record to a session.
@@ -76,7 +76,7 @@ class SessionManager:
entity_id: ID of the entity being executed
executor_name: Name of the executor
request_input: Input for the request
model: Model name
model_id: Model name
Returns:
Request ID
@@ -91,7 +91,7 @@ class SessionManager:
"entity_id": entity_id,
"executor": executor_name,
"input": request_input,
"model": model,
"model_id": model_id,
"stream": True,
}
session["requests"].append(request_record)
@@ -39,7 +39,7 @@ class EntityInfo(BaseModel):
# Agent-specific fields (optional, populated when available)
instructions: str | None = None
model: str | None = None
model_id: str | None = None
chat_client_type: str | None = None
context_providers: list[str] | None = None
middleware: list[str] | None = None