fix: correct Team constructor usage in abort-signal tests
This commit is contained in:
parent
336d94e50d
commit
1e3bd1013e
|
|
@ -11,7 +11,7 @@ describe('AbortSignal support for runTeam and runTasks', () => {
|
||||||
|
|
||||||
// Verify the API accepts the option without throwing
|
// Verify the API accepts the option without throwing
|
||||||
const controller = new AbortController()
|
const controller = new AbortController()
|
||||||
const team = new Team('test', {
|
const team = new Team({
|
||||||
name: 'test',
|
name: 'test',
|
||||||
agents: [
|
agents: [
|
||||||
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
||||||
|
|
@ -39,7 +39,7 @@ describe('AbortSignal support for runTeam and runTasks', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
const controller = new AbortController()
|
const controller = new AbortController()
|
||||||
const team = new Team('test', {
|
const team = new Team({
|
||||||
name: 'test',
|
name: 'test',
|
||||||
agents: [
|
agents: [
|
||||||
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
||||||
|
|
@ -65,7 +65,7 @@ describe('AbortSignal support for runTeam and runTasks', () => {
|
||||||
const controller = new AbortController()
|
const controller = new AbortController()
|
||||||
controller.abort()
|
controller.abort()
|
||||||
|
|
||||||
const team = new Team('test', {
|
const team = new Team({
|
||||||
name: 'test',
|
name: 'test',
|
||||||
agents: [
|
agents: [
|
||||||
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
||||||
|
|
@ -87,7 +87,7 @@ describe('AbortSignal support for runTeam and runTasks', () => {
|
||||||
defaultProvider: 'openai',
|
defaultProvider: 'openai',
|
||||||
})
|
})
|
||||||
|
|
||||||
const team = new Team('test', {
|
const team = new Team({
|
||||||
name: 'test',
|
name: 'test',
|
||||||
agents: [
|
agents: [
|
||||||
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
{ name: 'agent1', model: 'test-model', systemPrompt: 'test' },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue