Skip to content

Commit

Permalink
Merge branch 'master' into ft-change-to-https-module
Browse files Browse the repository at this point in the history
  • Loading branch information
plxity authored Dec 12, 2024
2 parents c5ec10d + 1a6e102 commit f253cb2
Show file tree
Hide file tree
Showing 56 changed files with 558 additions and 277 deletions.
67 changes: 43 additions & 24 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ on:
push:
branches:
- master
paths:
- 'python/**'
pull_request:
paths:
- 'python/**'

jobs:
lock_check:
Expand Down Expand Up @@ -59,11 +55,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
pip install --user --upgrade setuptools
pip install tox==4.6.3
pip install 'tox>=4.21,<5' tox-uv
- name: Code style check
run: |
tox -e black-diff
Expand All @@ -79,8 +71,6 @@ jobs:
run:
working-directory: ./python
continue-on-error: False
needs:
- lock_check
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -100,32 +90,65 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
pip install --user --upgrade setuptools
pip install tox==4.6.3
pip install 'tox>=4.21,<5' tox-uv
- name: Unittests
run: |
export COMPOSIO_API_KEY=${{ secrets.COMPOSIO_API_KEY_STAGING }}
export COMPOSIO_BASE_URL=${{ secrets.COMPOSIO_BASE_URL_STAGING }}
export FLY_API_TOKEN=${{ secrets.FLY_API_TOKEN }}
export E2B_API_KEY=${{ secrets.E2B_API_KEY_STAGING }}
tox -e test -- -m 'not e2e'
tox -e test -- -m 'not e2e and not swe'
- if: matrix.python-version == '3.10'
name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

swe:
defaults:
run:
working-directory: ./python
continue-on-error: False
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
timeout-minutes: 20
concurrency:
group: 'test:swe:${{ matrix.python-version }}:${{ github.ref }}'
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install 'tox>=4.21,<5' tox-uv
- name: Unittests
run: |
export COMPOSIO_API_KEY=${{ secrets.COMPOSIO_API_KEY_STAGING }}
export COMPOSIO_BASE_URL=${{ secrets.COMPOSIO_BASE_URL_STAGING }}
export FLY_API_TOKEN=${{ secrets.FLY_API_TOKEN }}
export E2B_API_KEY=${{ secrets.E2B_API_KEY_STAGING }}
tox -e test -- -m 'swe'
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

e2e:
defaults:
run:
working-directory: ./python
continue-on-error: False
needs:
- lock_check
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -154,11 +177,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
pip install --user --upgrade setuptools
pip install tox==4.6.3
pip install 'tox>=4.21,<5' tox-uv
- name: Build docker images
run: |
cd dockerfiles
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ jobs:
COMPOSIO_BASE_URL: ${{ inputs.base_url || secrets.COMPOSIO_BASE_URL || 'https://backend.composio.dev/api' }}
# TODO(@kaavee): Add Anthropic API key
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
python -m pip install --upgrade pip pipenv pytest
python -m pip install plugins/${{matrix.package}}
python -m pip install '.[all]'
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ jobs:
COMPOSIO_BASE_URL: https://backend.composio.dev/api
COMPOSIO_API_KEY: ${{secrets.COMPOSIO_API_KEY_RELEASE}}
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
# Setup release
python -m pip install --upgrade pip
python -m pip install .
Expand Down Expand Up @@ -91,10 +87,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Build ${{ matrix.package }}
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
python -m pip install --upgrade pip
pip install twine build
# Build dist
Expand Down Expand Up @@ -128,10 +120,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Build
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
python -m pip install --upgrade pip
pip install twine build
# Build dist
Expand Down
57 changes: 57 additions & 0 deletions docs/framework/langflow.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: "Using Composio With LangFlow"
sidebarTitle: "LangFlow"
icon: "network-wired"
description: "Use Composio with LangFlow to create LLM agents that can interact with external apps"
---

## Star A Repository on Github
In this example, we will use LangFlow to star a repository on Github using Composio Tools

<Steps>
<Step title="Add Composio Component">
Head over to the [LangFlow](https://astra.datastax.com/langflow) website, create a new project, look for Composio component in the component list and add it to your project
<img src="media/langflow/1.jpg" />
<img src="media/langflow/2.jpg" />
</Step>
<Step title="Configure Composio Component">
Go to your [Composio Dashboard](https://app.composio.dev/) and copy your API key, paste it in the API Key field in the Composio component and then search for Github in apps list and select it
<img src="media/langflow/3.jpg" />
<img src="media/langflow/4.jpg" />
</Step>
<Step title="Authenticate with Github">
Click on refresh button, a link to authenticate with Github will be generated (if you don't have connected Github account), click on it and authenticate
<Info>
Most recent connected Github account with entity Id `default` will be considered for executing the action
</Info>
<img src="media/langflow/5.jpg" />
<img src="media/langflow/6.jpg" />
</Step>
<Step title="Verify Connection Status">
After authenticating, click on the refresh button to verify connection status
<img src="media/langflow/7.jpg" />
</Step>
<Step title="Select the Action">
Select the action `GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER` and you're done configuring the Composio component
<img src="media/langflow/8.jpg" />
</Step>
<Step title="Add Agent">
Look for agent in Components list, add it to your project, connect Composio component as tools to the agent then configure the agent (model provider, model name, api key, etc.).
<img src="media/langflow/9.jpg" />
<img src="media/langflow/10.jpg" />
Lastly modify the agent input to **Star the repo composiohq/composio**
<img src="media/langflow/11.jpg" />
</Step>
<Step title="Add Chat Output">
Look for chat output in Components list, add it to your project, connect agent's response to the chat output component. We will use this component to monitor the agent's response
<img src="media/langflow/12.jpg" />
</Step>
<Step title="Run the Agent">
Click on the run button on chat output to run the agent, and open playground to monitor the agent's response
<img src="media/langflow/13.jpg" />
</Step>
<Step title="Agent's Response">
Hurray! You have successfully starred the repository composiohq/composio
<img src="media/langflow/14.jpg" />
</Step>
</Steps>
Binary file added docs/framework/media/langflow/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/framework/media/langflow/9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f253cb2

Please sign in to comment.