Skip to content

Commit 2998951

Browse files
authored
V3 (#93)
* Refactored tools into a shared component. Removed 3.9 support. Added MCP support. Added prompt caching. Cleaned content_parts behaviors on messages. Made ruff rules stricter. * Migrated to PipelineStep mechanics for Chat pipelines and removed internal generation steps * Version to v3.0.0-rc.0 * Update CI to reflect dropping 3.9 support and __version__ updates from importlib * Fix bug with Chat construction on error * Fix some callback clone issues. Fix tool handling when None is returned. Version to 3.0.0-rc.1 * Add parameter to tools. Make tools callable directly. * Bunch of tool mechanic updates and bug fixes. * Version to v3.0.0-rc.2 * Fixes for core types schema generation * Fixing some nested decorator properties * Version to 3.0.0-rc.3 * Set merge_strategy for .add to . * Initial support for audio inputs. Fix for gemini multi-modal output. Update LiteLLM. * Fix tests * Fix logfire fstring weirdness. Add some additional fields to Message.extra from litellm. * version to v3.0.0-rc.4 * Move docs to mintlify spec. Update docs for v3. * Add truncation for messages and tools. Version to 3.0.0. * Fix vllm generator type annotations * More type fixes * More type fixes * relocking dependencies * Dependency updates and type fixes * Linting fixes
1 parent c143768 commit 2998951

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+11328
-8235
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.9", "3.10", "3.11"]
14+
python-version: ["3.10", "3.11", "3.12"]
1515

1616
runs-on: ubuntu-latest
1717

@@ -43,16 +43,6 @@ jobs:
4343
- name: Install package
4444
run: poetry install --all-extras
4545

46-
- name: Validate version
47-
run: |
48-
POETRY_VERSION=$(poetry version -s)
49-
INIT_VERSION=$(poetry run python -c "import rigging; print(rigging.__version__)")
50-
51-
if [ "$POETRY_VERSION" != "$INIT_VERSION" ]; then
52-
echo "Version mismatch: pyproject.toml ($POETRY_VERSION) != __init__.py ($INIT_VERSION)"
53-
exit 1
54-
fi
55-
5646
- name: Lint
5747
run: poetry run ruff check --output-format=github rigging
5848

.github/workflows/publish.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Python
2020
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
2121
with:
22-
python-version: "3.9"
22+
python-version: "3.10"
2323

2424
- name: Install Poetry
2525
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd
@@ -36,17 +36,6 @@ jobs:
3636
run: |
3737
TAG_VERSION=${GITHUB_REF#refs/tags/v}
3838
POETRY_VERSION=$(poetry version -s)
39-
INIT_VERSION=$(poetry run python -c "import rigging; print(rigging.__version__)")
40-
41-
if ! [[ $TAG_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
42-
echo "Invalid tag format: $TAG_VERSION. Must be vX.X.X"
43-
exit 1
44-
fi
45-
46-
if [ "$POETRY_VERSION" != "$INIT_VERSION" ]; then
47-
echo "Version mismatch: pyproject.toml ($POETRY_VERSION) != __init__.py ($INIT_VERSION)"
48-
exit 1
49-
fi
5039
5140
if [ "$TAG_VERSION" != "$POETRY_VERSION" ]; then
5241
echo "Tag ($TAG_VERSION) doesn't match pyproject.toml ($POETRY_VERSION)"

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
"python.testing.unittestEnabled": false,
1414
"python.testing.pytestEnabled": true,
1515
"mypy.runUsingActiveInterpreter": true,
16+
"debugpy.debugJustMyCode": false,
17+
"jupyter.debugJustMyCode": false
1618
}

docs/api/chat.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/api/completion.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/api/data.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/api/error.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/api/generator.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/api/interact.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/api/logging.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)