File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ Follow TDD Process:
100
100
Use the testRunner tool with mode: "generate" to create tests, and mode: "run" to execute them.` ;
101
101
102
102
// Get the solution with retries and verification
103
- const solution = await context . adapters . openai . completions . createCompletion ( prompt , "anthropic/claude-3.5-sonnet " , workingDir ) ;
103
+ const solution = await context . adapters . openai . completions . createCompletion ( prompt , "deepseek/deepseek-r1 " , workingDir ) ;
104
104
105
105
if ( ! solution ) {
106
106
logger . error ( "No solution was generated" ) ;
Original file line number Diff line number Diff line change @@ -37,24 +37,36 @@ export interface Tool<T = unknown> {
37
37
execute ( args : Record < string , unknown > ) : Promise < ToolResult < T > > ;
38
38
}
39
39
40
- export interface OpenAITool < T = unknown > {
40
+ export interface OpenAIToolDefinition {
41
41
type : "function" ;
42
42
function : {
43
43
name : string ;
44
44
description : string ;
45
45
parameters : JSONSchemaDefinition ;
46
- execute ?( args : Record < string , unknown > ) : Promise < ToolResult < T > > ;
47
46
} ;
48
47
}
49
48
50
- export function convertToOpenAITool < T > ( tool : Tool < T > ) : OpenAITool < T > {
49
+ export interface OpenAIToolCall {
50
+ type : "function" ;
51
+ function : {
52
+ name : string ;
53
+ arguments : string ;
54
+ } ;
55
+ id : string ;
56
+ }
57
+
58
+ export interface OpenAIToolResult {
59
+ tool_call_id : string ;
60
+ output : string ;
61
+ }
62
+
63
+ export function convertToOpenAITool < T > ( tool : Tool < T > ) : OpenAIToolDefinition {
51
64
return {
52
65
type : "function" ,
53
66
function : {
54
67
name : tool . name ,
55
68
description : tool . description ,
56
69
parameters : tool . parameters ,
57
- execute : tool . execute ,
58
70
} ,
59
71
} ;
60
72
}
You can’t perform that action at this time.
0 commit comments