-
Notifications
You must be signed in to change notification settings - Fork 1
Add agents to room api and add Agent class #36
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
Merged
AHGIJMKLKKZNPJKQR
merged 19 commits into
main
from
FCE-1874/add-agent-websocket-to-python-server-sdk
Aug 25, 2025
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e40007b
Add agents to room api and add Agent class
AHGIJMKLKKZNPJKQR 87e2a3b
Fix imports
AHGIJMKLKKZNPJKQR bd3d2c6
Organize imports
AHGIJMKLKKZNPJKQR 774d329
Don't use python 3.12 features
AHGIJMKLKKZNPJKQR 5fff5fc
Imports
AHGIJMKLKKZNPJKQR da5856d
Update old tests
AHGIJMKLKKZNPJKQR b0e32bb
Export PeerType
AHGIJMKLKKZNPJKQR 08b8327
Migrate to uv
AHGIJMKLKKZNPJKQR aae5c85
Update GH Actions
AHGIJMKLKKZNPJKQR 9dcabb7
Update openapi
AHGIJMKLKKZNPJKQR 7a4cf6e
Openapi changes
AHGIJMKLKKZNPJKQR 7bcd2aa
Add transcription example
AHGIJMKLKKZNPJKQR 1cb7ca7
Update openapi client
AHGIJMKLKKZNPJKQR 2eaa664
Update README
AHGIJMKLKKZNPJKQR 677d98e
Remove redundant files
AHGIJMKLKKZNPJKQR 4ba6f9a
Review changes
AHGIJMKLKKZNPJKQR deb7c6a
Fix typo
AHGIJMKLKKZNPJKQR 2f59a79
Update readme
AHGIJMKLKKZNPJKQR 79457e7
Update protos
AHGIJMKLKKZNPJKQR File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,33 +8,39 @@ on: | |
| workflow_dispatch: | ||
| inputs: | ||
| code_branch_tag: | ||
| description: 'The branch or tag to run the workflow from' | ||
| description: "The branch or tag to run the workflow from" | ||
| required: true | ||
| default: 'main' | ||
| default: "main" | ||
|
|
||
| jobs: | ||
| # Build the documentation and upload the static HTML files as an artifact. | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.inputs.ref }} | ||
| - uses: actions/setup-python@v4 | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version-file: "pyproject.toml" | ||
|
|
||
| - uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| python-version: '3.12' | ||
| - uses: abatilo/actions-poetry@v2 | ||
| - run: poetry install | ||
| - run: poetry run generate_docs | ||
| python-version-file: "pyproject.toml" | ||
| enable-cache: true | ||
|
|
||
| - run: uv sync --locked | ||
| - run: uv run generate_docs | ||
| - run: git fetch origin gh-pages --depth=1 | ||
| - run: git config user.name ci-bot | ||
| - run: git config user.email [email protected] | ||
| - run: poetry run mike deploy latest | ||
| - run: uv run mike deploy latest | ||
| - run: git checkout gh-pages | ||
|
|
||
| # Push changes to gh-pages branch | ||
| - name: Push changes | ||
| uses: ad-m/github-push-action@master | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| branch: gh-pages | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| branch: gh-pages | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,11 +5,20 @@ on: | |
| tags: | ||
| - "v*.*.*" | ||
| jobs: | ||
| build: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| name: Publish to PyPI | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Build and publish to pypi | ||
| uses: JRubics/[email protected] | ||
| with: | ||
| pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v6 | ||
|
|
||
| - name: Build package | ||
| run: uv build | ||
|
|
||
| - name: Publish package | ||
| env: | ||
| UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
| run: uv publish | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,23 +10,29 @@ jobs: | |
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version-file: "pyproject.toml" | ||
|
|
||
| - uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| python-version: '3.9' | ||
| - uses: abatilo/actions-poetry@v2 | ||
| - run: poetry install | ||
| - run: poetry run generate_docs | ||
| python-version-file: "pyproject.toml" | ||
| enable-cache: true | ||
|
|
||
| - run: uv sync --locked | ||
| - run: uv run generate_docs | ||
| - run: git fetch origin gh-pages --depth=1 | ||
| - run: git config user.name ci-bot | ||
| - run: git config user.email [email protected] | ||
| - run: poetry run mike deploy ${{github.ref_name}} | ||
| - run: poetry run mike set-default ${{github.ref_name}} | ||
| - run: uv run mike deploy ${{ github.ref_name }} | ||
| - run: uv run mike set-default ${{ github.ref_name }} | ||
| - run: git checkout gh-pages | ||
|
|
||
| # Push changes to gh-pages branch | ||
| - name: Push changes | ||
| uses: ad-m/github-push-action@master | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| branch: gh-pages | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| branch: gh-pages | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| python 3.13.5 | ||
| poetry 2.1.3 | ||
| uv 0.8.12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Transcription demo | ||
|
|
||
| This directory contains a demo app, which uses [Fishjam](https://fishjam.io) and [Gemini Live API](https://ai.google.dev/gemini-api/docs/live) | ||
| for real-time transcription of ongoing calls. | ||
|
|
||
| The application contains an HTTP server written in [FastAPI](https://fastapi.tiangolo.com/) | ||
| and uses [uv](https://docs.astral.sh/uv/) for dependency management. | ||
|
|
||
| ## Running | ||
|
|
||
| Make sure to [install uv](https://docs.astral.sh/uv/getting-started/installation/) if you don't have it already. | ||
|
|
||
| Once you have `uv` installed, fetch the dependencies with | ||
|
|
||
| ```bash | ||
| uv sync --all-packages | ||
| ``` | ||
|
|
||
| To run the app, you will need 3 environment variables: | ||
|
|
||
| - `FISHJAM_ID`: Your Fishjam ID, which you can get on the [Fishjam website](https://fishjam.io/app) | ||
| - `FISHJAM_MANAGEMENT_TOKEN`: Your Fishjam managemen token, which you can get on the [Fishjam website](https://fishjam.io/app) | ||
AHGIJMKLKKZNPJKQR marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - `GEMINI_API_KEY`: An API key for the Gemini API. You can generate one on the [Gemini website](https://aistudio.google.com/app/apikey). | ||
|
|
||
| Once you have these variables, you can run the demo with | ||
|
|
||
| ```bash | ||
| FISHJAM_ID=<your-fishjam-id> \ | ||
| FISHJAM_MANAGEMENT_TOKEN=<your-management-token> \ | ||
| GEMINI_API_KEY=<your-api-token> \ | ||
| uv run fastapi dev | ||
| ``` | ||
|
|
||
| Now, you can create peer tokens by going to <http://localhost:3000>. | ||
| You can then use the [minimal-react](https://github.com/fishjam-cloud/web-client-sdk/tree/main/examples/react-client) | ||
| demo app to connect as these peers and see your transcriptions live in the console! | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.