| 119 | } |
| 120 | |
| 121 | interface AgentService { |
| 122 | startGoalAgent: ( |
| 123 | modelSettings: ModelSettings, |
| 124 | goal: string, |
| 125 | customLanguage: string |
| 126 | ) => Promise<string[]>; |
| 127 | analyzeTaskAgent: ( |
| 128 | modelSettings: ModelSettings, |
| 129 | goal: string, |
| 130 | task: string |
| 131 | ) => Promise<Analysis>; |
| 132 | executeTaskAgent: ( |
| 133 | modelSettings: ModelSettings, |
| 134 | goal: string, |
| 135 | task: string, |
| 136 | analysis: Analysis, |
| 137 | customLanguage: string, |
| 138 | |
| 139 | ) => Promise<string>; |
| 140 | createTasksAgent: ( |
| 141 | modelSettings: ModelSettings, |
| 142 | goal: string, |
| 143 | tasks: string[], |
| 144 | lastTask: string, |
| 145 | result: string, |
| 146 | completedTasks: string[] | undefined, |
| 147 | customLanguage: string, |
| 148 | ) => Promise<string[]>; |
| 149 | } |
| 150 | |
| 151 | const OpenAIAgentService: AgentService = { |
| 152 | startGoalAgent: startGoalAgent, |
nothing calls this directly
no outgoing calls
no test coverage detected