AgentsSDK - "context" is a bit misleading perhaps?

I assumed incorrectly that context is anything that needs to be passed to the LLM → config, vector store etc , however , if I understand correctly it’s only a temporary in-memory call stack to pass variables across function calls/tools available to the model?

Quoting straight from docs, this (Run context) refers to:

Context available locally to your code: this is data and dependencies you might need when tool functions run, during callbacks like on_handoff, in lifecycle hooks, etc.

Here’s more info: https://openai.github.io/openai-agents-python/context/

@ibigio touched upon this in the last Build Hour livestream, I’d recommend watching it when it comes out.

3 Likes

Is this livestream available as a recording ?

Should be able to watch the recorded session on-demand:

2 Likes