Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- "3.13"
#- "pypy-3.10" # TODO: Fix build failures.
#- "pypy-3.11" # TODO: Fix build failures.
#- "3.14" # TODO: This still fails.
- "3.14"
fail-fast: false

steps:
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libffi-dev cmake curl ripgrep
sudo apt-get install -y build-essential libffi-dev cmake curl ripgrep libjpeg-dev zlib1g-dev

- name: Set up Go
uses: actions/setup-go@main
Expand Down
2 changes: 1 addition & 1 deletion py/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
'3.11',
'3.12',
'3.13',
#'3.14', # This still fails.
'3.14',
]


Expand Down
1 change: 1 addition & 0 deletions py/packages/genkit/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
32 changes: 16 additions & 16 deletions py/packages/genkit/src/genkit/core/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class BaseDataPoint(BaseModel):
model_config = ConfigDict(extra='forbid', populate_by_name=True)
input: Any | None = None
output: Any | None = None
context: list | None = None
context: list[Any] | None = None
reference: Any | None = None
test_case_id: str | None = Field(None, alias='testCaseId')
trace_ids: list[str] | None = Field(None, alias='traceIds')
Expand All @@ -74,7 +74,7 @@ class EvalRequest(BaseModel):


class EvalStatusEnum(StrEnum):
"""Enumeration of evalstatusenum values."""
"""EvalStatusEnum data type class."""

UNKNOWN = 'UNKNOWN'
PASS_ = 'PASS'
Expand Down Expand Up @@ -126,7 +126,7 @@ class GenkitError(BaseModel):


class Code(StrEnum):
"""Enumeration of code values."""
"""Code data type class."""

BLOCKED = 'blocked'
OTHER = 'other'
Expand Down Expand Up @@ -158,7 +158,7 @@ class CustomPart(BaseModel):


class FinishReason(StrEnum):
"""Enumeration of finishreason values."""
"""FinishReason data type class."""

STOP = 'stop'
LENGTH = 'length'
Expand All @@ -169,7 +169,7 @@ class FinishReason(StrEnum):


class ToolChoice(StrEnum):
"""Enumeration of toolchoice values."""
"""ToolChoice data type class."""

AUTO = 'auto'
REQUIRED = 'required'
Expand Down Expand Up @@ -220,7 +220,7 @@ class GenerationUsage(BaseModel):


class Constrained(StrEnum):
"""Enumeration of constrained values."""
"""Constrained data type class."""

NONE = 'none'
ALL = 'all'
Expand All @@ -244,7 +244,7 @@ class Supports(BaseModel):


class Stage(StrEnum):
"""Enumeration of stage values."""
"""Stage data type class."""

FEATURED = 'featured'
STABLE = 'stable'
Expand Down Expand Up @@ -301,7 +301,7 @@ class Resource1(BaseModel):


class Role(StrEnum):
"""Enumeration of role values."""
"""Role data type class."""

SYSTEM = 'system'
USER = 'user'
Expand Down Expand Up @@ -349,7 +349,7 @@ class ToolResponse(BaseModel):
ref: str | None = None
name: str
output: Any | None = None
content: list | None = None
content: list[Any] | None = None


class CommonRerankerOptions(BaseModel):
Expand Down Expand Up @@ -410,7 +410,7 @@ class SameProcessAsParentSpan(BaseModel):


class State(StrEnum):
"""Enumeration of state values."""
"""State data type class."""

SUCCESS = 'success'
ERROR = 'error'
Expand Down Expand Up @@ -462,10 +462,10 @@ class TraceMetadata(BaseModel):
timestamp: float


class Context(RootModel[list]):
class Context(RootModel[list[Any]]):
"""Root model for context."""

root: list
root: list[Any]


class Input(RootModel[Any]):
Expand Down Expand Up @@ -504,10 +504,10 @@ class MediaModel(RootModel[Any]):
root: Any


class Metadata(RootModel[dict[str, Any] | None]):
class Metadata(RootModel[dict[str, Any]]):
"""Root model for metadata."""

root: dict[str, Any] | None = None
root: dict[str, Any]


class Reasoning(RootModel[Any]):
Expand Down Expand Up @@ -540,10 +540,10 @@ class ToolResponseModel(RootModel[Any]):
root: Any


class Custom(RootModel[dict[str, Any] | None]):
class Custom(RootModel[dict[str, Any]]):
"""Root model for custom."""

root: dict[str, Any] | None = None
root: dict[str, Any]


class Config(RootModel[Any]):
Expand Down
1 change: 1 addition & 0 deletions py/plugins/anthropic/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/plugins/compat-oai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/plugins/dev-local-vectorstore/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
9 changes: 5 additions & 4 deletions py/plugins/evaluators/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"genkit",
"jsonata-python>=0.5.3",
"pydantic>=2.10.5",
"strenum>=0.4.15; python_version < '3.11'",
"genkit",
"jsonata-python>=0.5.3",
"pydantic>=2.10.5",
"strenum>=0.4.15; python_version < '3.11'",
]
description = "Genkit Evaluators Plugin for RAGAS"
license = { text = "Apache-2.0" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


from collections.abc import Callable

try:
from enum import StrEnum
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions py/plugins/firebase/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/plugins/flask/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/plugins/google-cloud/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/plugins/google-genai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/plugins/ollama/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/plugins/vertex-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/compat-oai-hello/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/dev-local-vectorstore-hello/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/firestore-retreiver/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/flask-hello/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/google-genai-code-execution/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/google-genai-context-caching/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/google-genai-hello/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/google-genai-image/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/google-genai-vertexai-hello/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/google-genai-vertexai-image/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/menu/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/model-garden/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
Expand Down
1 change: 1 addition & 0 deletions py/samples/multi-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/ollama-hello/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/ollama-simple-embed/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
1 change: 1 addition & 0 deletions py/samples/short-n-long/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
]
Expand Down
Loading
Loading