Skip to content

Conversation

AnatoliB
Copy link
Owner

@AnatoliB AnatoliB commented Sep 13, 2025

We want DurableAIAgentContext objects to look very similar to DurableOrchestrationContext objects from the usage perspective. Two methods (call_activity and call_activity_with_retry) need to do more than the original ones, so they are defined explicitly in DurableAIAgentContext. However, all the other methods and attributes of the original DurableOrchestrationContext should be also available on the wrapping DurableAIAgentContext, and these should be pure delegates. This PR achieves this without creating delegates explicitly.

@AnatoliB AnatoliB marked this pull request as ready for review September 13, 2025 06:54
Copy link
Collaborator

@philliphoff philliphoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A clever solution! LGTM! (Sorry about the merge conflict.)

@AnatoliB AnatoliB merged commit 1244b42 into durable-openai-agent Sep 16, 2025
4 checks passed
@AnatoliB AnatoliB deleted the anatolib/context branch September 16, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants