mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
[BREAKING] Python: Remove request_type param from ctx.request_info() (#1824)
* Remove request_type param from ctx.request_info() * Address comments
This commit is contained in:
committed by
GitHub
Unverified
parent
2101d9d36d
commit
68b6a55757
+2
-3
@@ -125,13 +125,12 @@ class ReviewGateway(Executor):
|
||||
await ctx.set_executor_state({"iteration": iteration, "last_draft": draft})
|
||||
# Emit a human approval request.
|
||||
await ctx.request_info(
|
||||
HumanApprovalRequest(
|
||||
request_data=HumanApprovalRequest(
|
||||
prompt="Review the draft. Reply 'approve' or provide edit instructions.",
|
||||
draft=draft,
|
||||
iteration=iteration,
|
||||
),
|
||||
HumanApprovalRequest,
|
||||
str,
|
||||
response_type=str,
|
||||
)
|
||||
|
||||
@response_handler
|
||||
|
||||
@@ -145,7 +145,7 @@ class DraftReviewRouter(Executor):
|
||||
"Confirm CTA is action-oriented",
|
||||
],
|
||||
)
|
||||
await ctx.request_info(request, ReviewRequest, str)
|
||||
await ctx.request_info(request_data=request, response_type=str)
|
||||
|
||||
@response_handler
|
||||
async def forward_decision(
|
||||
@@ -251,7 +251,7 @@ class LaunchCoordinator(Executor):
|
||||
await ctx.set_executor_state(executor_state)
|
||||
|
||||
# Send the request without modification
|
||||
await ctx.request_info(review_request, ReviewRequest, str)
|
||||
await ctx.request_info(request_data=review_request, response_type=str)
|
||||
|
||||
@response_handler
|
||||
async def handle_request_response(
|
||||
|
||||
Reference in New Issue
Block a user