File tree Expand file tree Collapse file tree 2 files changed +64
-1
lines changed
Expand file tree Collapse file tree 2 files changed +64
-1
lines changed Original file line number Diff line number Diff line change 1+ import { createBase2 } from './base2'
2+ import type { SecretAgentDefinition } from '../types/secret-agent-definition'
3+
4+ const definition : SecretAgentDefinition = {
5+ ...createBase2 ( 'normal' ) ,
6+ id : 'base2-gpt-5-single-step' ,
7+ model : 'openai/gpt-5' ,
8+ reasoningOptions : {
9+ enabled : true ,
10+ effort : 'medium' ,
11+ exclude : false ,
12+ } ,
13+
14+ inputSchema : { } ,
15+
16+ handleSteps : function * ( { params } ) {
17+ // Run context-pruner before each step
18+ yield {
19+ toolName : 'spawn_agent_inline' ,
20+ input : {
21+ agent_type : 'context-pruner' ,
22+ params : params ?? { } ,
23+ } ,
24+ includeToolCall : false ,
25+ } as any
26+
27+ yield 'STEP'
28+ } ,
29+ }
30+
31+ export default definition
Original file line number Diff line number Diff line change 11import { createBase2 } from './base2'
2+ import type { SecretAgentDefinition } from '../types/secret-agent-definition'
23
3- const definition = { ...createBase2 ( 'max' ) , id : 'base2-max' }
4+ const base2 = createBase2 ( 'max' )
5+ const definition : SecretAgentDefinition = {
6+ ...base2 ,
7+ id : 'base2-max' ,
8+ spawnableAgents : [
9+ ...( base2 . spawnableAgents ?? [ ] ) ,
10+ 'base2-gpt-5-single-step' ,
11+ ] ,
12+ handleSteps : function * ( { params } ) {
13+ while ( true ) {
14+ // Run context-pruner before each step
15+ yield {
16+ toolName : 'spawn_agent_inline' ,
17+ input : {
18+ agent_type : 'context-pruner' ,
19+ params : params ?? { } ,
20+ } ,
21+ includeToolCall : false ,
22+ } as any
23+
24+ const { stepsComplete } = yield 'STEP'
25+ if ( stepsComplete ) break
26+
27+ yield {
28+ toolName : 'spawn_agent_inline' ,
29+ input : {
30+ agent_type : 'base2-gpt-5-single-step' ,
31+ } ,
32+ }
33+ }
34+ } ,
35+ }
436
537export default definition
You can’t perform that action at this time.
0 commit comments