feat: Expose run_config of current invocation from ReadonlyContext

Merge https://github.com/google/adk-python/pull/3410

### Link to Issue or Description of Change

**1. Link to an existing issue (if applicable):**

- Closes: #3409

Co-authored-by: Hangfei Lin <hangfei@google.com>
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3410 from ksachdeva:expose-runconfig b62b923df421f0bdc1c20948d16765c555c01cb8
PiperOrigin-RevId: 828738445
This commit is contained in:
Kapil Sachdeva
2025-11-05 19:46:36 -08:00
committed by Copybara-Service
parent f511352508
commit d7521eb638
@@ -24,6 +24,7 @@ if TYPE_CHECKING:
from ..sessions.session import Session
from .invocation_context import InvocationContext
from .run_config import RunConfig
class ReadonlyContext:
@@ -58,3 +59,8 @@ class ReadonlyContext:
def session(self) -> Session:
"""The current session for this invocation."""
return self._invocation_context.session
@property
def run_config(self) -> Optional[RunConfig]:
"""The run config of the current invocation. READONLY field."""
return self._invocation_context.run_config