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 google/genai/_interactions/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
from .generation_config_param import GenerationConfigParam as GenerationConfigParam
from .google_maps_result_step import GoogleMapsResultStep as GoogleMapsResultStep
from .google_search_call_step import GoogleSearchCallStep as GoogleSearchCallStep
from .interaction_start_event import InteractionStartEvent as InteractionStartEvent
from .model_output_step_param import ModelOutputStepParam as ModelOutputStepParam
from .url_context_result_step import URLContextResultStep as URLContextResultStep
from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse
Expand All @@ -102,18 +101,19 @@
from .tool_choice_config_param import ToolChoiceConfigParam as ToolChoiceConfigParam
from .google_search_result_step import GoogleSearchResultStep as GoogleSearchResultStep
from .interaction_create_params import InteractionCreateParams as InteractionCreateParams
from .interaction_created_event import InteractionCreatedEvent as InteractionCreatedEvent
from .interaction_status_update import InteractionStatusUpdate as InteractionStatusUpdate
from .mcp_server_tool_call_step import MCPServerToolCallStep as MCPServerToolCallStep
from .code_execution_result_step import CodeExecutionResultStep as CodeExecutionResultStep
from .deep_research_agent_config import DeepResearchAgentConfig as DeepResearchAgentConfig
from .dynamic_agent_config_param import DynamicAgentConfigParam as DynamicAgentConfigParam
from .function_result_step_param import FunctionResultStepParam as FunctionResultStepParam
from .interaction_complete_event import InteractionCompleteEvent as InteractionCompleteEvent
from .text_response_format_param import TextResponseFormatParam as TextResponseFormatParam
from .audio_response_format_param import AudioResponseFormatParam as AudioResponseFormatParam
from .file_search_call_step_param import FileSearchCallStepParam as FileSearchCallStepParam
from .google_maps_call_step_param import GoogleMapsCallStepParam as GoogleMapsCallStepParam
from .image_response_format_param import ImageResponseFormatParam as ImageResponseFormatParam
from .interaction_completed_event import InteractionCompletedEvent as InteractionCompletedEvent
from .mcp_server_tool_result_step import MCPServerToolResultStep as MCPServerToolResultStep
from .url_context_call_step_param import URLContextCallStepParam as URLContextCallStepParam
from .video_response_format_param import VideoResponseFormatParam as VideoResponseFormatParam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
from .._models import BaseModel
from .interaction import Interaction

__all__ = ["InteractionCompleteEvent"]
__all__ = ["InteractionCompletedEvent"]


class InteractionCompleteEvent(BaseModel):
event_type: Literal["interaction.complete"]
class InteractionCompletedEvent(BaseModel):
event_type: Literal["interaction.completed"]

interaction: Interaction
"""Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
from .._models import BaseModel
from .interaction import Interaction

__all__ = ["InteractionStartEvent"]
__all__ = ["InteractionCreatedEvent"]


class InteractionStartEvent(BaseModel):
event_type: Literal["interaction.start"]
class InteractionCreatedEvent(BaseModel):
event_type: Literal["interaction.created"]

interaction: Interaction
"""The Interaction resource."""
Expand Down
8 changes: 4 additions & 4 deletions google/genai/_interactions/types/interaction_sse_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
from .step_delta import StepDelta
from .step_start import StepStart
from .error_event import ErrorEvent
from .interaction_start_event import InteractionStartEvent
from .interaction_created_event import InteractionCreatedEvent
from .interaction_status_update import InteractionStatusUpdate
from .interaction_complete_event import InteractionCompleteEvent
from .interaction_completed_event import InteractionCompletedEvent

__all__ = ["InteractionSSEEvent"]

InteractionSSEEvent: TypeAlias = Annotated[
Union[
InteractionStartEvent,
InteractionCompleteEvent,
InteractionCreatedEvent,
InteractionCompletedEvent,
InteractionStatusUpdate,
ErrorEvent,
StepStart,
Expand Down
Loading