Skip to content

Is RunContext thread safe? #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
controldev opened this issue Apr 17, 2025 · 3 comments
Closed

Is RunContext thread safe? #537

controldev opened this issue Apr 17, 2025 · 3 comments
Labels
question Question about using the SDK stale

Comments

@controldev
Copy link

I was wondering if multiple tools or agent hooks can safely edit the run context at the same time? For example, under a parallel tool call.

@controldev controldev added the question Question about using the SDK label Apr 17, 2025
@rm-openai
Copy link
Collaborator

The RunContextWrapper is not thread-safe, but the context itself is an object you provided, so you can make it thread safe. LMK if that works for you.

Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label Apr 25, 2025
Copy link

This issue was closed because it has been inactive for 3 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about using the SDK stale
Projects
None yet
Development

No branches or pull requests

2 participants