Python: [BREAKING] Renamed AgentRunContext to AgentContext (#3714)

* Renamed AgentRunContext to AgentContext

* Update python/packages/core/AGENTS.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dmytro Struk
2026-02-05 22:47:51 -08:00
committed by GitHub
Unverified
parent c609b14f63
commit 09f59b21ad
18 changed files with 219 additions and 319 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ sequenceDiagram
Note over Agent,AML: Agent Middleware Layer
Agent->>AML: run() with middleware param
AML->>AML: categorize_middleware() → split by type
AML->>AMP: execute(AgentRunContext)
AML->>AMP: execute(AgentContext)
loop Agent Middleware Chain
AMP->>AMP: middleware[i].process(context, next)
@@ -127,7 +127,7 @@ sequenceDiagram
**Entry Point:** `Agent.run(messages, thread, options, middleware)`
**Context Object:** `AgentRunContext`
**Context Object:** `AgentContext`
| Field | Type | Description |
|-------|------|-------------|