メインコンテンツへスキップ
weave / WeaveAdkPlugin Weave の agents パイプラインで、ランナーの呼び出し、エージェントの実行、モデルの Call、ツールの実行を GenAI-semconv OTel スパンとして出力する ADK プラグインです。 構造的に BasePlugin の完全なサーフェスを実装しています。ADK の PluginManager はすべてのコールバックを呼び出すため、no-op のコールバックであっても、すべて定義されています。ADK は undefined 以外の戻り値をショートサーキットとして扱うため、各コールバックは自身のエラーを捕捉して undefined を返します。

実装

  • BasePlugin

目次

コンストラクター

プロパティ

メソッド

コンストラクター

コンストラクター

new WeaveAdkPlugin(): WeaveAdkPlugin

戻り値

WeaveAdkPlugin

プロパティ

Readonly : "weave"

実装元

AdkBasePlugin.name

定義元

src/integrations/googleAdk.ts:590

メソッド

afterAgentCallback

afterAgentCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.afterAgentCallback

定義元

src/integrations/googleAdk.ts:779

afterContextCompaction

afterContextCompaction(_params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.afterContextCompaction

定義元

src/integrations/googleAdk.ts:997

afterModelCallback

afterModelCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.afterModelCallback

定義元

src/integrations/googleAdk.ts:841

afterRunCallback

afterRunCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.afterRunCallback

定義元

src/integrations/googleAdk.ts:713

afterToolCallback

afterToolCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.afterToolCallback

定義元

src/integrations/googleAdk.ts:965

beforeAgentCallback

beforeAgentCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.beforeAgentCallback

定義元

src/integrations/googleAdk.ts:765

beforeContextCompaction

beforeContextCompaction(_params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.beforeContextCompaction

定義元

src/integrations/googleAdk.ts:993

beforeModelCallback

beforeModelCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.beforeModelCallback

定義元

src/integrations/googleAdk.ts:804

beforeRunCallback

beforeRunCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.beforeRunCallback

定義元

src/integrations/googleAdk.ts:621

beforeToolCallback

beforeToolCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.beforeToolCallback

定義元

src/integrations/googleAdk.ts:918

beforeToolSelection

beforeToolSelection(_params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.beforeToolSelection

定義元

src/integrations/googleAdk.ts:914

finishInterruptedInvocation

finishInterruptedInvocation(invocationId): void afterRunCallback に到達しなかった run を終了処理します。ADK はイベント ループが通常どおりドレインされた場合にのみ afterRunCallback をディスパッチするため、runAsync を途中で抜けたコンシューマーや、 中止された run では、その invocation (および関連するスパン) が開いたまま残ります。 自動インストルメントされたランナー ラッパーは、これらを中断として閉じるために finally からこれを呼び出します。 べき等であり、run がすでに終了している場合 (一般的な、完全に消費されたケース) には何もしません。

パラメーター

戻り値

void

定義元

src/integrations/googleAdk.ts:732

onEventCallback

onEventCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.onEventCallback

定義元

src/integrations/googleAdk.ts:693

onModelErrorCallback

onModelErrorCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.onModelErrorCallback

定義元

src/integrations/googleAdk.ts:884

onToolErrorCallback

onToolErrorCallback(params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.onToolErrorCallback

定義元

src/integrations/googleAdk.ts:977

onUserMessageCallback

onUserMessageCallback(_params): Promise<undefined>

パラメーター

戻り値

Promise<undefined>

実装元

AdkBasePlugin.onUserMessageCallback

定義元

src/integrations/googleAdk.ts:614