Python: [BREAKING] update to v1.0.0 (#5062)

* updates to final deprecated pieces and versions

* fix mypy

* fix readme links
This commit is contained in:
Eduard van Valkenburg
2026-04-02 17:26:30 +02:00
committed by GitHub
Unverified
parent 5f06b68535
commit 3446eb8d5d
171 changed files with 2580 additions and 2392 deletions
@@ -640,7 +640,7 @@ class InvokeAzureAgentExecutor(DeclarativeActionExecutor):
# Add user input to conversation history first (via state.append only)
if input_text:
user_message = Message(role="user", text=input_text)
user_message = Message(role="user", contents=[input_text])
state.append(messages_path, user_message)
# Get conversation history from state AFTER adding user message
@@ -717,7 +717,7 @@ class InvokeAzureAgentExecutor(DeclarativeActionExecutor):
"Agent '%s': No messages in response, creating simple assistant message",
agent_name,
)
assistant_message = Message(role="assistant", text=accumulated_response)
assistant_message = Message(role="assistant", contents=[accumulated_response])
state.append(messages_path, assistant_message)
# Store results in state - support both schema formats:
@@ -588,7 +588,9 @@ class BaseToolExecutor(DeclarativeActionExecutor):
messages=[
Message(
role="assistant",
text=f"Function '{function_name}' was rejected: {response.reason or 'No reason provided'}",
contents=[
f"Function '{function_name}' was rejected: {response.reason or 'No reason provided'}"
],
)
],
)