Prompt Flow is a development tool designed to streamline the end-to-end development cycle of Large Language Model (LLM)-based AI applications, covering ideation, prototyping, testing, evaluation, and production deployment. It provides a Python SDK and CLI for building, testing, and managing AI workflows. The current version is 1.18.4, with frequent minor releases delivering new features and improvements.
pip install promptflowVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define a Python function as a Prompt Flow tool using the `@tool` decorator. Tools are the building blocks of Prompt Flow applications. For full flow orchestration and interaction with LLMs via connections, the `PromptFlowClient` or the CLI is typically used.
Upgrade your Python environment to 3.9, 3.10, 3.11, or 3.12.
Review the official Prompt Flow documentation and CHANGELOG for specific migration steps related to connection types you are using. Update connection definitions in YAMLs or Python code accordingly.
Consult the `CHANGELOG.md` before upgrading to understand potential breaking changes. Consider pinning exact versions in production environments and thoroughly testing upgrades.
Ensure all necessary Prompt Flow sub-packages (e.g., `promptflow-tools`, `promptflow-core`, `promptflow-devkit`, `promptflow-azure`) are explicitly listed in your `requirements.txt` file and installed in the target environment. For version upgrades (especially to >=1.8.0), perform a clean uninstall of old sub-packages before installing the new version: `pip uninstall -y promptflow promptflow-core promptflow-devkit promptflow-azure && pip install promptflow promptflow-tools --upgrade`.
Verify the connection name is correct and the connection is created and accessible in your environment (e.g., `pf connection list` locally or check Azure workspace connections). For cloud deployments, ensure the endpoint identity has appropriate roles (like 'Azure AI Developer' or 'Contributor') to access connections. If keys were regenerated, manually update the connection configuration in the deployed flow or redeploy.
To work around this issue, disable Prompt Flow's tracing by setting the environment variable `PF_DISABLE_TRACING` to `true` in your deployment configuration. Additionally, ensure compatibility of `openai` and `marshmallow` packages; pinning `openai==1.44.1` is a known workaround in some cases.
This often points to a bug in the `promptflow-tracing` library. Update `promptflow-tracing` to its latest version, along with `promptflow`, as updates frequently include fixes for such issues. If the problem persists, disabling tracing via `PF_DISABLE_TRACING=true` can serve as a temporary workaround until a patch is released.
No dependency data recorded yet.