FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(triggers): restrict agent triggers API to EAP via AGY_AGENT_TRIGGERS_EAP and enable GENAI_PRIVATE_SDK on Developer API (v1alpha, v1beta) by copybara-service[bot] · Pull Request #2989 · googleapis/python-genai · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (3) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions google/genai/_gaos/triggers.py
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
Expand Up @@ -218,7 +218,7 @@ def create(
r"""Creates a new trigger that will invoke the specified agent on the given
cron schedule.

:param interaction: Required. The interaction request template to be executed.
:param interaction:
:param schedule: Required. The cron schedule on which the trigger should run.
Standard cron format.
:param time_zone: Required. Time zone in which the schedule should be interpreted.
Expand Down Expand Up @@ -1393,7 +1393,7 @@ async def create(
r"""Creates a new trigger that will invoke the specified agent on the given
cron schedule.

:param interaction: Required. The interaction request template to be executed.
:param interaction:
:param schedule: Required. The cron schedule on which the trigger should run.
Standard cron format.
:param time_zone: Required. Time zone in which the schedule should be interpreted.
Expand Down
6 changes: 0 additions & 6 deletions google/genai/_gaos/types/triggers/trigger.py
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
Expand Up @@ -20,7 +20,6 @@
from __future__ import annotations
from datetime import datetime
from .. import BaseModel, UNSET_SENTINEL, UnrecognizedStr
from ..interactions import interaction as interactions_interaction
from pydantic import model_serializer
from typing import Literal, Optional, Union
from typing_extensions import NotRequired, TypedDict
Expand All @@ -42,8 +41,6 @@ class TriggerTypedDict(TypedDict):

id: str
r"""Required. Output only. Identifier. The ID of the trigger."""
interaction: interactions_interaction.InteractionTypedDict
r"""The Interaction resource."""
schedule: str
r"""Required. The cron schedule on which the trigger should run.
Standard cron format.
Expand Down Expand Up @@ -88,9 +85,6 @@ class Trigger(BaseModel):
id: str
r"""Required. Output only. Identifier. The ID of the trigger."""

interaction: interactions_interaction.Interaction
r"""The Interaction resource."""

schedule: str
r"""Required. The cron schedule on which the trigger should run.
Standard cron format.
Expand Down
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
Expand Up @@ -35,7 +35,6 @@
interactions_createmodelinteraction.CreateModelInteractionParam,
],
)
r"""Required. The interaction request template to be executed."""


Interaction = TypeAliasType(
Expand All @@ -45,14 +44,12 @@
interactions_createmodelinteraction.CreateModelInteraction,
],
)
r"""Required. The interaction request template to be executed."""


class TriggerCreateParamsParam(TypedDict):
r"""Parameters for creating a trigger."""

interaction: InteractionParam
r"""Required. The interaction request template to be executed."""
schedule: str
r"""Required. The cron schedule on which the trigger should run.
Standard cron format.
Expand All @@ -75,7 +72,6 @@ class TriggerCreateParams(BaseModel):
r"""Parameters for creating a trigger."""

interaction: Interaction
r"""Required. The interaction request template to be executed."""

schedule: str
r"""Required. The cron schedule on which the trigger should run.
Expand Down
Loading

Back | FazBrowse Home | New Git URL