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:
@@ -129,7 +129,7 @@ async def to_email_assistant_request(
|
||||
"""
|
||||
# Bridge executor. Converts a structured DetectionResult into a Message and forwards it as a new request.
|
||||
detection = DetectionResult.model_validate_json(response.agent_response.text)
|
||||
user_msg = Message("user", text=detection.email_content)
|
||||
user_msg = Message("user", contents=[detection.email_content])
|
||||
await ctx.send_message(AgentExecutorRequest(messages=[user_msg], should_respond=True))
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ async def main() -> None:
|
||||
|
||||
# Execute the workflow. Since the start is an AgentExecutor, pass an AgentExecutorRequest.
|
||||
# The workflow completes when it becomes idle (no more work to do).
|
||||
request = AgentExecutorRequest(messages=[Message("user", text=email)], should_respond=True)
|
||||
request = AgentExecutorRequest(messages=[Message("user", contents=[email])], should_respond=True)
|
||||
events = await workflow.run(request)
|
||||
outputs = events.get_outputs()
|
||||
if outputs:
|
||||
|
||||
Reference in New Issue
Block a user