> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elitea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pipeline Migration Guide: Updating from Previous Versions

> This guide provides instructions for migrating pipelines from earlier ELITEA versions (1.6, 1.7) to version 2.0. The migration process involves several importan

<Info title="Migration Scope">
  This guide covers migration from version 1.6 and later. If you're migrating from earlier versions, additional steps may be required.
</Info>

<Info title="Additional Migration Changes">
  For LLM node-specific changes and configurations, also read about [LLM Node Changes in the migration guide](./update-llm-nodes). This covers important updates to LLM node behavior and configuration that complement the pipeline migration steps outlined in this document.
</Info>

***

## Function Node Changes (Version 1.7+)

### Issue Description

In version 1.7, "Function" nodes were significantly modified and can now only be used with toolkits. Any Function nodes containing agents or prompts will appear empty after migration.

### Migration Steps

**For Agent-Based Function Nodes**

**Identify Affected Nodes**: Look for Function nodes that previously contained agents or prompts

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/empty_function.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=69c941db38089d9a883e53df4f3c5077" alt="Old pipelines" width="630" height="660" data-path="img/migration/v2.0.0/empty_function.png" />

1. **Replace with an Agent node**:
   1. Delete the existing Function node.
   2. Add a new **Agent** node type and integrate it into the flow (add all required connections).
   3. Select the appropriate agent from the dropdown.
2. **Configure input/output**: Set up the input and output connections as they were in the original Function node.
3. **Add task description**: Fill in the task field — this is crucial as it triggers the agent execution.

<Warning title="Task Field Requirement">
  The task field in Agent nodes is mandatory and is used to trigger agent execution. Ensure you provide a clear, descriptive task for each Agent node.
</Warning>

**For Toolkit-Based Function Nodes**

Function nodes can still be used for toolkit operations without LLM participation.

***

## Prompt Entity Removal (Version 1.7+)

### Issue Description

In version 1.7, the prompt entity was removed from ELITEA. Previously existing prompts were automatically converted to agents, but pipeline references may need manual updates.

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/empty_tool.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=2deeea94da59b35d376c988e22063a9c" alt="Old pipelines" width="781" height="633" data-path="img/migration/v2.0.0/empty_tool.png" />

### Migration Steps

**For Tool Nodes Using Prompts**

1. **Identify legacy Tool nodes**: Find Tool nodes that reference converted prompts (now agents).
2. **Replace with Agent nodes**:
   * Remove the existing Tool node.
   * Add a new **Agent** node.
   * Select the converted agent (formerly a prompt) from the agent dropdown.
3. **Configure parameters**:
   * Set up input connections.
   * Configure output handling.
   * Add the required task description.
4. **Validate conversion**: Test the pipeline to ensure the converted prompt-to-agent functions correctly.

**For Function Nodes Using Prompts**

Follow the same process as described in the Function Node Changes section above.

***

## Node Disconnection Issues

### Issue Description

When replacing nodes that are followed by Decision, Condition, or Router nodes, there is a high probability that connections will be lost after migration or node replacement. This is a known limitation in current ELITEA versions.

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/broken_connection.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=ebd27baa80a6f91771389e59c478967c" alt="Old pipelines" width="914" height="806" data-path="img/migration/v2.0.0/broken_connection.png" />

### Workaround Steps

1. **Document connections**: Before making changes, take screenshots or save a copy of the pipeline YAML (or create a new pipeline version) to preserve the connection sequence.
2. **Replace nodes**: Perform the necessary node replacements as described above.
3. **Save pipeline**: Save your changes.
4. **Reconnect nodes**: Manually reconnect the nodes to their proper destinations:
   * **Decision nodes**: Reconnect to the appropriate conditional branches.
   * **Condition nodes**: Reestablish logical flow connections.
   * **Router nodes**: Restore routing configurations.
5. **Test connections**: Verify all connections work as expected.

<Tip title="Connection Management">
  This limitation will be resolved in future releases. For now, always verify and manually reconnect nodes after replacement operations.
</Tip>

***

## State Format Changes

### Issue Description

The state format was changed in YAML configuration for pipelines. Some existing pipelines may encounter state format errors when running.

### Error Symptoms

You may see the following format-related errors when running pipelines, typically indicating incompatible YAML state formatting.

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/state_format_error.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=d5a74a04e69e2c5c025b2fe0c0793dfa" alt="Format error" width="479" height="122" data-path="img/migration/v2.0.0/state_format_error.png" />

Old YAML syntax:

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/old_yaml.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=d8683cc2619734900ce954b5cb705a4d" alt="Old pipelines" width="393" height="185" data-path="img/migration/v2.0.0/old_yaml.png" />

New YAML syntax:

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/new_yaml.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=7924d5ea422d5da7d5fc2d581bc13ba7" alt="Old pipelines" width="362" height="187" data-path="img/migration/v2.0.0/new_yaml.png" />

### Resolution Methods

**Method 1: Automatic Format Update**

1. **Edit state variables**: Navigate to your pipeline's state variables.
2. **Make minor changes**: Add a new temporary state variable or modify an existing one and save the pipeline.
3. **Save changes**: The system will automatically convert the state format to the current version.
4. **Remove temporary changes**: Delete any temporary variables you added.

**Method 2: Manual Format Conversion**

1. **Access state configuration**: Open the pipeline YAML state variables section.
2. **Review current format**: Compare against the current YAML state format requirements.
3. **Update manually**: Modify the state configuration to match the current format specifications.
4. **Validate format**: Ensure the YAML syntax is correct and compatible.

<Info title="Quick Fix">
  The easiest approach is Method 1: simply add a temporary state variable, save the pipeline, then remove the temporary variable. This triggers automatic format conversion.
</Info>

***

## Pre-1.7 Agent toolkit Compatibility Issues

### Issue Description

Agents and pipelines that were created before version 1.7 may encounter compatibility issues when using attached toolkits. This affects pipeline execution.

### Error Symptoms

When trying to run pipelines containing pre-1.7 agents, you may encounter the following error:

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/pre-17-pipeline-error.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=457f9aa26ac67bce380cd136c0b675e1" alt="Pipeline Error Message - Placeholder for Image" width="783" height="243" data-path="img/migration/v2.0.0/pre-17-pipeline-error.png" />

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/pre-17-pipeline-error2.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=e32278f63d4232a85f31f155b3076f69" alt="Pipeline Error Message - Placeholder for Image2" width="946" height="131" data-path="img/migration/v2.0.0/pre-17-pipeline-error2.png" />

### Warning Messages

Additionally, you may see warning messages related to attached toolkits and agents containing toolkits:

<img src="https://mintcdn.com/epam-a74ef051/17A86izaGCzTjYjh/img/migration/v2.0.0/pre-17-agent-warnings.png?fit=max&auto=format&n=17A86izaGCzTjYjh&q=85&s=6c9babfeea40fe9c5dc8d9bf3573ed8c" alt="Agent/Toolkit Warning Messages - Placeholder for Image" width="292" height="384" data-path="img/migration/v2.0.0/pre-17-agent-warnings.png" />

### Resolution Steps

**For pipelines with pre-1.7 agents**

1. **Identify affected toolkits**: Review all toolkits attached to the pipeline or nested agents.
2. **Update toolkit configuration**:
   * Open each affected toolkit.
   * Select or create new credentials for it.
   * Deselect obsolete tools, if any.
3. **Test toolkit functionality**: Verify that the updated toolkit works correctly in isolation.

<Warning title="Agent Recreation May Be Required">
  In some cases, severely outdated toolkits may need to be recreated entirely. If configuration updates don't resolve the issues, consider creating a new toolkit with the same functionality and replacing the old ones in your pipelines/agents.
</Warning>

More about toolkit migration read here  [Next quick-start](../../migration/v1.7.0/next-quick-start)

### Getting Help

If you encounter issues during migration:

1. **Check error messages**: Review detailed error messages (usually shown at the end) for guidance; look for node or variable names that indicate the issue.
2. **Contact support**: For complex issues, contact support at **[SupportAlita@epam.com](mailto:SupportAlita@epam.com)**.

When contacting support, provide:

* Pipeline version information
* Specific error messages
* Screenshots of the problematic configurations
* Description of attempted migration steps.
