idk
This commit is contained in:
@@ -55,12 +55,15 @@ export const TOOLS: Tool[] = [
|
|||||||
|
|
||||||
export class ToolServer {
|
export class ToolServer {
|
||||||
private _callCount = 0;
|
private _callCount = 0;
|
||||||
|
private readonly pr: PRContext;
|
||||||
|
private readonly workspace: string | null;
|
||||||
|
private readonly maxToolCalls: number;
|
||||||
|
|
||||||
constructor(
|
constructor(pr: PRContext, workspace: string | null, maxToolCalls: number) {
|
||||||
private readonly pr: PRContext,
|
this.pr = pr;
|
||||||
private readonly workspace: string | null,
|
this.workspace = workspace;
|
||||||
private readonly maxToolCalls: number,
|
this.maxToolCalls = maxToolCalls;
|
||||||
) {}
|
}
|
||||||
|
|
||||||
get tools(): Tool[] {
|
get tools(): Tool[] {
|
||||||
return TOOLS;
|
return TOOLS;
|
||||||
|
|||||||
Reference in New Issue
Block a user