# Class SkillComposer

Composes skills to solve complex tasks.

- Defined in packages/nexus-agents/src/agents/skills/skill-composer.ts:54

##### Index

### Constructors

constructor

### Methods

compose
validateComposition
getConfig

## Constructors

### constructor

- new SkillComposer(
  library: SkillLibrary,
  config?: Partial<SkillComposerConfig>,
  logger?: ILogger,
  ): SkillComposer

  #### Parameters

  - library: SkillLibrary
  - config: Partial<SkillComposerConfig> = {}
  - `Optional` logger: ILogger

  #### Returns SkillComposer

  - Defined in packages/nexus-agents/src/agents/skills/skill-composer.ts:59

## Methods

### compose

- compose(request: SkillCompositionRequest): SkillComposition | null

  Creates a composition plan for a task.

  #### Parameters

  - request: SkillCompositionRequest

  #### Returns SkillComposition | null

  - Defined in packages/nexus-agents/src/agents/skills/skill-composer.ts:68

### validateComposition

- validateComposition(composition: SkillComposition): CompositionValidation

  Validates that a composition is executable.

  #### Parameters

  - composition: SkillComposition

  #### Returns CompositionValidation

  - Defined in packages/nexus-agents/src/agents/skills/skill-composer.ts:98

### getConfig

- getConfig(): SkillComposerConfig

  Gets the current configuration.

  #### Returns SkillComposerConfig

  - Defined in packages/nexus-agents/src/agents/skills/skill-composer.ts:136