Add return processing sample to openai_agents sample #584
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a complete, orchestrated order return processing system using Azure Functions and OpenAI Agents. It implements a multi-step workflow for handling customer return requests, including validation, automated refund processing, and escalation to human review when necessary.
Order return validation:
order_return_validation.pydefining an AI agent and business logic to validate return reasons against company policy, with structured result output.Automated refund processing:
refund_processing.pydefining an AI agent for processing refunds, including simulated payment operations and order detail retrieval.Durable orchestrators and activities:
order_return_orchestrators.pyregistering orchestrators for the main order return process, validation, refund processing, and a human review activity.Documentation and API reference:
ORDER_RETURNS.mdwith an overview, API reference, business logic, example requests/responses, architecture diagram, and testing instructions for the order return system.