mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
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:
committed by
GitHub
Unverified
parent
5f06b68535
commit
3446eb8d5d
@@ -68,7 +68,7 @@ async def security_filter_middleware(
|
||||
role="assistant",
|
||||
)
|
||||
|
||||
response = ChatResponse(messages=[Message(role="assistant", text=error_message)])
|
||||
response = ChatResponse(messages=[Message(role="assistant", contents=[error_message])])
|
||||
context.result = ResponseStream(blocked_stream(), finalizer=lambda _, r=response: r)
|
||||
else:
|
||||
# Non-streaming mode: return complete response
|
||||
@@ -76,7 +76,7 @@ async def security_filter_middleware(
|
||||
messages=[
|
||||
Message(
|
||||
role="assistant",
|
||||
text=error_message,
|
||||
contents=[error_message],
|
||||
)
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user