Skip to content

Commit

Permalink
fix(tool): attach under the root emitter
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <[email protected]>
  • Loading branch information
Tomas2D committed Nov 4, 2024
1 parent ae46d82 commit 92b0a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export abstract class Tool<
public readonly cache: BaseCache<Task<TOutput>>;
protected readonly options: TOptions;

public readonly emitter = new Emitter<ToolCallbacks<ToolInput<this>, TOutput>>({
public readonly emitter = Emitter.root.child<ToolCallbacks<ToolInput<this>, TOutput>>({
namespace: ["tool"],
creator: this,
});
Expand Down

0 comments on commit 92b0a38

Please sign in to comment.