-
Notifications
You must be signed in to change notification settings - Fork 7
fix: documentation OpenAI #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
058d224
aa965f7
abdd516
5b62cc4
7588cbe
8ae4cdf
b93bfcb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,125 @@ | ||
| # UiPath OpenAI Agents SDK | ||
| # UiPath OpenAI Agents Python SDK | ||
|
|
||
| Build intelligent AI agents with OpenAI's Agents framework and UiPath. | ||
| [](https://pypi.org/project/uipath-openai-agents/) | ||
| [](https://pypi.org/project/uipath-openai-agents/) | ||
| [](https://pypi.org/project/uipath-openai-agents/) | ||
|
|
||
| A Python SDK that enables developers to build and deploy OpenAI Agents to the UiPath Cloud Platform. It provides programmatic interaction with UiPath Cloud Platform services. | ||
|
|
||
| This package is an extension to the [UiPath Python SDK](https://github.com/UiPath/uipath-python) and implements the [UiPath Runtime Protocol](https://github.com/UiPath/uipath-runtime-python). | ||
|
|
||
| Check out these [sample projects](https://github.com/UiPath/uipath-integrations-python/tree/main/packages/uipath-openai-agents/samples) to see the SDK in action. | ||
|
|
||
| ## Requirements | ||
|
|
||
| - Python 3.11 or higher | ||
| - UiPath Automation Cloud account | ||
|
|
||
| ## Installation | ||
|
|
||
| ```bash | ||
| pip install uipath-openai-agents | ||
| ``` | ||
|
|
||
| ## Quick Start | ||
| using `uv`: | ||
|
|
||
| ```bash | ||
| uv add uipath-openai-agents | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing: I get this error for the uv command: |
||
| ``` | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. even after using `Because only uipath-openai-agents==0.0.1 is available and uipath-openai-agents==0.0.1 depends on your project, we can conclude that This is a limitation if the |
||
| ## Configuration | ||
|
|
||
| ### Environment Variables | ||
|
|
||
| Create a `.env` file in your project root with the following variables: | ||
|
|
||
| ``` | ||
| UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME | ||
| UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE | ||
| ``` | ||
|
|
||
| ## Command Line Interface (CLI) | ||
|
|
||
| The SDK provides a command-line interface for creating, packaging, and deploying OpenAI Agents: | ||
|
|
||
| ### Authentication | ||
|
|
||
| ```bash | ||
| uipath auth | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no |
||
| ``` | ||
|
|
||
| This command opens a browser for authentication and creates/updates your `.env` file with the proper credentials. | ||
|
|
||
| ### Initialize a Project | ||
|
|
||
| ```bash | ||
| uipath init | ||
| ``` | ||
|
|
||
| Running `uipath init` will process the agent definitions in the `openai_agents.json` file and create the corresponding `entry-points.json` file needed for deployment. | ||
|
|
||
| For more details on the configuration format, see the [UiPath configuration specifications](https://github.com/UiPath/uipath-python/blob/main/specs/README.md). | ||
|
|
||
| ### Debug a Project | ||
|
|
||
| ```bash | ||
| uipath run AGENT [INPUT] | ||
| ``` | ||
|
|
||
| Executes the agent with the provided JSON input arguments. | ||
|
|
||
| ### Package a Project | ||
|
|
||
| ```bash | ||
| uipath pack | ||
| ``` | ||
|
|
||
| Packages your project into a `.nupkg` file that can be deployed to UiPath. | ||
|
|
||
| **Note:** Your `pyproject.toml` must include: | ||
|
|
||
| - A description field (avoid characters: &, <, >, ", ', ;) | ||
| - Author information | ||
|
|
||
| Example: | ||
|
|
||
| ```toml | ||
| description = "Your package description" | ||
| authors = [{name = "Your Name", email = "your.email@example.com"}] | ||
| ``` | ||
|
|
||
| ### Publish a Package | ||
|
|
||
| ```bash | ||
| uipath publish | ||
| ``` | ||
|
|
||
| Publishes the most recently created package to your UiPath Orchestrator. | ||
|
|
||
| ## Project Structure | ||
|
|
||
| To properly use the CLI for packaging and publishing, your project should include: | ||
|
|
||
| See the [main repository documentation](../../docs/) for getting started guides and examples. | ||
| - A `pyproject.toml` file with project metadata | ||
| - A `openai_agents.json` file with your agent definitions (e.g., `"agents": {"agent": "main.py:agent"}`) | ||
| - A `entry-points.json` file (generated by `uipath init`) | ||
| - A `bindings.json` file (generated by `uipath init`) to configure resource overrides | ||
| - Any Python files needed for your automation | ||
|
|
||
| ## Features | ||
| ## Development | ||
|
|
||
| - **OpenAI Agents Integration**: Build agents using OpenAI's native Agents framework | ||
| - **Agent Orchestration**: Multi-agent coordination and communication | ||
| - **State Management**: Persistent agent state with SQLite sessions | ||
| - **UiPath Integration**: Seamless integration with UiPath runtime and tooling | ||
| ### Developer Tools | ||
|
|
||
| ## Status | ||
| Check out [uipath-dev](https://github.com/uipath/uipath-dev-python) - an interactive terminal application for building, testing, and debugging UiPath Python runtimes, agents, and automation scripts. | ||
|
|
||
| ⚠️ **Early Development**: This package is in early development (v0.1.0). APIs may change as the OpenAI Agents framework evolves. | ||
| ### Setting Up a Development Environment | ||
|
|
||
| ## Documentation | ||
| Please read our [contribution guidelines](https://github.com/UiPath/uipath-integrations-python/packages/uipath-openai-agents/blob/main/CONTRIBUTING.md) before submitting a pull request. | ||
|
|
||
| Full documentation is available in the [main repository](https://github.com/UiPath/uipath-llamaindex-python). | ||
| ### Special Thanks | ||
|
|
||
| ## License | ||
| A huge thank-you to the open-source community and the maintainers of the libraries that make this project possible: | ||
|
|
||
| See [LICENSE](../../LICENSE) in the repository root. | ||
| - [OpenAI](https://github.com/openai/openai-python) for providing a powerful framework for building AI agents. | ||
| - [OpenInference](https://github.com/Arize-ai/openinference) for observability and instrumentation support. | ||
| - [Pydantic](https://github.com/pydantic/pydantic) for reliable, typed configuration and validation. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "message": "Tell me a joke" | ||
| "messages": "Tell me a joke" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make clear these are alternatives to the same thing (see LangChain/LLamaindex getting started examples)