[**@s4ai/core Documentation v0.3.23**](../../../README.md)

***

[@s4ai/core Documentation](../../../modules.md) / [autonomous/advanced-swarm-coordination](../README.md) / AdvancedSwarmOrchestrator

# Class: AdvancedSwarmOrchestrator

Defined in: autonomous/advanced-swarm-coordination.js:270

## Extends

- [`Revenue`](../../../@s4ai/core/business/variables/Revenue.md)

## Constructors

### Constructor

> **new AdvancedSwarmOrchestrator**(`config?`): `AdvancedSwarmOrchestrator`

Defined in: autonomous/advanced-swarm-coordination.js:271

#### Parameters

##### config?

#### Returns

`AdvancedSwarmOrchestrator`

#### Overrides

`EventEmitter.constructor`

## Properties

### agents

> **agents**: `Map`\<`any`, `any`\>

Defined in: autonomous/advanced-swarm-coordination.js:273

***

### antColonyPheromones

> **antColonyPheromones**: `any`[]

Defined in: autonomous/advanced-swarm-coordination.js:279

***

### clusters

> **clusters**: `Map`\<`any`, `any`\>

Defined in: autonomous/advanced-swarm-coordination.js:275

***

### config

> **config**: `object`

Defined in: autonomous/advanced-swarm-coordination.js:282

#### autoScaling

> **autoScaling**: `boolean`

#### emergentBehaviorThreshold

> **emergentBehaviorThreshold**: `any`

#### loadBalancingStrategy

> **loadBalancingStrategy**: `any`

#### maxAgents

> **maxAgents**: `any`

***

### emergentPatterns

> **emergentPatterns**: `any`[]

Defined in: autonomous/advanced-swarm-coordination.js:280

***

### stigmergyMarkers

> **stigmergyMarkers**: `Map`\<`any`, `any`\>

Defined in: autonomous/advanced-swarm-coordination.js:278

***

### teams

> **teams**: `Map`\<`any`, `any`\>

Defined in: autonomous/advanced-swarm-coordination.js:274

## Methods

### createCluster()

> **createCluster**(`clusterName`, `teamIds`): `object`

Defined in: autonomous/advanced-swarm-coordination.js:310

#### Parameters

##### clusterName

`any`

##### teamIds

`any`

#### Returns

`object`

##### collectiveIntelligence

> **collectiveIntelligence**: `number` = `0`

##### createdAt

> **createdAt**: `number`

##### emergenceLevel

> **emergenceLevel**: `number` = `0`

##### id

> **id**: `string`

##### name

> **name**: `any` = `clusterName`

##### syncPatterns

> **syncPatterns**: `never`[] = `[]`

##### teams

> **teams**: `any`

***

### createTeam()

> **createTeam**(`teamName`, `agentIds`): `object`

Defined in: autonomous/advanced-swarm-coordination.js:292

#### Parameters

##### teamName

`any`

##### agentIds

`any`

#### Returns

`object`

##### agents

> **agents**: `any`

##### collaborationHistory

> **collaborationHistory**: `never`[] = `[]`

##### createdAt

> **createdAt**: `number`

##### decisions

> **decisions**: `never`[] = `[]`

##### id

> **id**: `string`

##### name

> **name**: `any` = `teamName`

##### performance

> **performance**: `number` = `1.0`

##### taskQueue

> **taskQueue**: `never`[] = `[]`

***

### deployAntColonyOptimization()

> **deployAntColonyOptimization**(`taskGraph`): `object`

Defined in: autonomous/advanced-swarm-coordination.js:426

#### Parameters

##### taskGraph

`any`

#### Returns

`object`

##### iterations

> **iterations**: `number`

##### optimalPath

> **optimalPath**: `any`[]

##### pheromoneMap

> **pheromoneMap**: `any`

***

### detectEmergence()

> **detectEmergence**(`results`): \{ `pattern`: `null`; `strength`: `number`; \} \| \{ `pattern`: \{ `confidenceLevel`: `number`; `convergenceRate`: `number`; `totalPatterns`: `any`; `type`: `string`; `uniqueApproaches`: `number`; \}; `strength`: `number`; \}

Defined in: autonomous/advanced-swarm-coordination.js:380

#### Parameters

##### results

`any`

#### Returns

\{ `pattern`: `null`; `strength`: `number`; \} \| \{ `pattern`: \{ `confidenceLevel`: `number`; `convergenceRate`: `number`; `totalPatterns`: `any`; `type`: `string`; `uniqueApproaches`: `number`; \}; `strength`: `number`; \}

***

### executeClusterTask()

> **executeClusterTask**(`clusterId`, `task`): `Promise`\<\{ `collectiveOutcome`: \{ `collectiveConfidence`: `number`; `overallSuccess`: `boolean`; `successRate`: `number`; `totalInsights`: `any`; `totalIssues`: `any`; \}; `emergence`: \{ `pattern`: `null`; `strength`: `number`; \} \| \{ `pattern`: \{ `confidenceLevel`: `number`; `convergenceRate`: `number`; `totalPatterns`: `any`; `type`: `string`; `uniqueApproaches`: `number`; \}; `strength`: `number`; \}; `emergenceLevel`: `any`; `success`: `boolean`; `teamResults`: `any`[]; \}\>

Defined in: autonomous/advanced-swarm-coordination.js:327

#### Parameters

##### clusterId

`any`

##### task

`any`

#### Returns

`Promise`\<\{ `collectiveOutcome`: \{ `collectiveConfidence`: `number`; `overallSuccess`: `boolean`; `successRate`: `number`; `totalInsights`: `any`; `totalIssues`: `any`; \}; `emergence`: \{ `pattern`: `null`; `strength`: `number`; \} \| \{ `pattern`: \{ `confidenceLevel`: `number`; `convergenceRate`: `number`; `totalPatterns`: `any`; `type`: `string`; `uniqueApproaches`: `number`; \}; `strength`: `number`; \}; `emergenceLevel`: `any`; `success`: `boolean`; `teamResults`: `any`[]; \}\>

***

### executeTeamTask()

> **executeTeamTask**(`teamId`, `task`): `Promise`\<`any`\>

Defined in: autonomous/advanced-swarm-coordination.js:357

#### Parameters

##### teamId

`any`

##### task

`any`

#### Returns

`Promise`\<`any`\>

***

### extractOptimalPath()

> **extractOptimalPath**(`pheromones`): `any`[]

Defined in: autonomous/advanced-swarm-coordination.js:460

#### Parameters

##### pheromones

`any`

#### Returns

`any`[]

***

### getOrchestrationMetrics()

> **getOrchestrationMetrics**(): `object`

Defined in: autonomous/advanced-swarm-coordination.js:470

#### Returns

`object`

##### agentMetrics

> **agentMetrics**: `object`

###### agentMetrics.activeAgents

> **activeAgents**: `number`

###### agentMetrics.avgCollaboration

> **avgCollaboration**: `number`

###### agentMetrics.avgConfidence

> **avgConfidence**: `number`

###### agentMetrics.avgHealth

> **avgHealth**: `number`

###### agentMetrics.mentorships

> **mentorships**: `number`

##### emergenceMetrics

> **emergenceMetrics**: `object`

###### emergenceMetrics.avgEmergenceLevel

> **avgEmergenceLevel**: `number`

###### emergenceMetrics.clustersWithEmergence

> **clustersWithEmergence**: `number`

##### totalAgents

> **totalAgents**: `number`

##### totalClusters

> **totalClusters**: `number`

##### totalTeams

> **totalTeams**: `number`

***

### synthesizeOutcome()

> **synthesizeOutcome**(`results`): `object`

Defined in: autonomous/advanced-swarm-coordination.js:412

#### Parameters

##### results

`any`

#### Returns

`object`

##### collectiveConfidence

> **collectiveConfidence**: `number`

##### overallSuccess

> **overallSuccess**: `boolean`

##### successRate

> **successRate**: `number`

##### totalInsights

> **totalInsights**: `any`

##### totalIssues

> **totalIssues**: `any`
