Skip to content

Commit

Permalink
feat(py): Core VertexAI plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Irillit committed Feb 19, 2025
1 parent 22f937f commit d13a10d
Show file tree
Hide file tree
Showing 9 changed files with 802 additions and 89 deletions.
6 changes: 0 additions & 6 deletions captainhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
{
"run": "pnpm i --frozen-lockfile"
},
{
"run": "py/bin/generate_schema_types"
},
{
"run": "bin/fmt"
},
Expand Down Expand Up @@ -73,9 +70,6 @@
{
"run": "pnpm i --frozen-lockfile"
},
{
"run": "py/bin/generate_schema_types"
},
{
"run": "bin/fmt"
},
Expand Down
13 changes: 12 additions & 1 deletion py/packages/genkit/src/genkit/ai/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@

from collections.abc import Callable

from genkit.core.schema_types import GenerateRequest, GenerateResponse
from genkit.core.schemas import (
GenerateRequest,
GenerateResponse,
ModelInfo,
)
from pydantic.dataclasses import dataclass

ModelFn = Callable[[GenerateRequest], GenerateResponse]


@dataclass
class ModelReference:
name: str
info: ModelInfo
Loading

0 comments on commit d13a10d

Please sign in to comment.