你现在可以在 Claude 托管代理的模型配置中设置努力级别。创建代理时,在模型对象中传递 effort 参数。各努力级别的具体作用请参阅努力级别说明。Claude 托管代理的 Webhook 现已覆盖环境和记忆存储生命周期:包括四个 environment.* 事件类型和三个 memory_store.* 事件类型。无需轮询即可响应环境和记忆存储的生命周期变更。详情请参阅订阅 Webhook 中的环境事件和记忆存储事件选项卡。创建 Claude 托管代理会话时,现在可以预置初始事件。在 POST /v1/sessions 接口中传递 initial_events 参数,最多可包含 50 个 user.message 和 user.define_outcome 事件。非空列表将在同一调用中启动代理循环,无需单独发送事件请求即可开始工作。更新 Claude 托管代理时,version 字段现为可选参数。提供该字段可实现乐观并发控制(版本不匹配时返回 409 错误),省略该字段则无条件应用更新。具体请参阅更新语义。Claude 托管代理的会话线程事件流现已支持事件增量。GET /v1/sessions/{session_id}/threads/{thread_id}/stream 接口支持与会话级流相同的 event_deltas[] 查询参数,因此你可以在模型生成文本时预览子代理的输出。连接仅预览其读取的线程内容。详情请参阅预览会话线程事件。
You can now set an effort level on a Claude Managed Agents agent's model configuration. Pass effort inside the model object when you create the agent. See Effort levels for what each level does. Webhooks for Claude Managed Agents now cover the environment and memory store lifecycle: four environment.* event types and three memory_store.* event types. You can react to environment and memory store lifecycle changes without polling. See the Environment events and Memory store events tabs in Subscribe to webhooks. When creating a Claude Managed Agents session, you can now seed it with initial events. Pass initial_events on POST /v1/sessions with up to 50 user.message and user.define_outcome events. A non-empty list starts the agent loop in the same call, so you don't need a separate send-events request to start work. The version field is now optional when updating a Claude Managed Agents agent. Supply it for optimistic concurrency (a mismatch returns a 409 error), or omit it to apply the update unconditionally. See Update semantics. Claude Managed Agents session thread event streams now support event deltas. GET /v1/sessions/{session_id}/threads/{thread_id}/stream accepts the same event_deltas[] query parameter as the session-level stream, so you can preview a subagent's text as the model generates it. A connection previews only the thread it's reading. See Preview session thread events.
本文内容采集自官方网站,排版和翻译可能与原页面存在差异。
阅读官方全文