כתבה
Claude Agent SDK (py) ·
עדכון Claude Agent SDK
v0.2.126
חבילת התוכנה Claude Agent SDK עודכנה עם תכונות חדשות, כולל terminal_reason ו-typed model_usage. העדכון כולל גם גרסה חדשה של Claude CLI.
תקציר מקורי באנגלית<h3>New Features</h3> <ul> <li><strong><code>terminal_reason</code> on ResultMessage</strong>: <code>ResultMessage.terminal_reason</code> now surfaces why the query loop ended (<code>"completed"</code>, <code>"max_turns"</code>, <code>"aborted_streaming"</code>, <code>"aborted_tools"</code>, etc.). A value of <code>"aborted_streaming"</code> or <code>"aborted_tools"</code> means the turn was cancelled via <code>ClaudeSDKClient.interrupt()</code>. Mirrors the TypeScript SDK's <code>SDKResultMessage.terminal_reason</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4944585306" data-permission-text="Title is private" data-url="https://github.com/anthropics/claude-agent-sdk-python/issues/1142" data-hovercard-type="pull_request" data-hovercard-url="/anth
קרא במקור המקורי
github.com
פתח כתבה מקורית