Skip to content

Commit e15fad5

Browse files
Merge branch 'main' into dkundel/change-export-loop
2 parents a29ccd1 + 2c6cfb1 commit e15fad5

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.changeset/plain-clowns-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openai/agents-core': patch
3+
---
4+
5+
Pass through signal to model call

docs/src/content/docs/ja/guides/tracing.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ Agents SDK にはトレーシング機能が組み込まれており、エージ
5151

5252
デフォルトで SDK は以下をトレースします:
5353

54-
- `run()` または `Runner.run()` 全体を 1 つの `Trace` でラップ
55-
- エージェント実行ごとに `AgentSpan` でラップ
56-
- LLM 生成は `GenerationSpan` でラップ
57-
- 関数ツール呼び出しはそれぞれ `FunctionSpan` でラップ
58-
- ガードレールは `GuardrailSpan` でラップ
59-
- ハンドオフは `HandoffSpan` でラップ
54+
- `run()` または `Runner.run()` 全体を `Trace` でラップ
55+
- エージェントが実行されるたびに `AgentSpan` でラップ
56+
- LLM 生成を `GenerationSpan` でラップ
57+
- 関数ツール呼び出しをそれぞれ `FunctionSpan` でラップ
58+
- ガードレールを `GuardrailSpan` でラップ
59+
- ハンドオフを `HandoffSpan` でラップ
6060

6161
デフォルトのトレース名は "Agent workflow" です。`withTrace` を使ってこの名前を変更できます。または [`RunConfig.workflowName`](/openai-agents-js/openai/agents-core/type-aliases/runconfig/#workflowname) で名前や他のプロパティを設定できます。
6262

docs/src/content/docs/ja/guides/troubleshooting.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ description: Learn how to troubleshoot issues with the OpenAI Agents SDK.
55

66
## 対応環境
77

8-
OpenAI Agents SDK は次のサーバー環境でサポートされています:
8+
OpenAI Agents SDK は、以下のサーバー環境でサポートされます:
99

1010
- Node.js 22 以降
1111
- Deno 2.35 以降
1212
- Bun 1.2.5 以降
1313

14-
### 限定サポート
14+
### 制限付きサポート
1515

1616
- **Cloudflare Workers**: Agents SDK は Cloudflare Workers でも使用できますが、現時点では以下の制限があります
1717
- SDK には `nodejs_compat` を有効にする必要があります

packages/agents-core/src/run.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ export class Runner extends RunHooks<any, AgentOutputType<unknown>> {
377377
this.config.tracingDisabled,
378378
this.config.traceIncludeSensitiveData,
379379
),
380+
signal: options.signal,
380381
});
381382
state._modelResponses.push(state._lastTurnResponse);
382383
state._context.usage.add(state._lastTurnResponse.usage);
@@ -724,6 +725,7 @@ export class Runner extends RunHooks<any, AgentOutputType<unknown>> {
724725
this.config.tracingDisabled,
725726
this.config.traceIncludeSensitiveData,
726727
),
728+
signal: options.signal,
727729
})) {
728730
if (event.type === 'response_done') {
729731
const parsed = StreamEventResponseCompleted.parse(event);

0 commit comments

Comments
 (0)