Pydantic models validating Gmail API email check responses and structured agent actions.
# Source: https://github.com/Upsonic/Upsonic | License: MIT | Copyright 2024 Upsonic Teknoloji A.Ş
# Provided via justclaw.it.com; keep this notice with the code.
"""
Schemas for Gmail Interface Integration.
This module contains Pydantic models for Gmail API responses.
"""
from typing import List, Literal
from pydantic import BaseModel, Field
class CheckEmailsResponse(BaseModel):
"""Response model for the check emails endpoint."""
status: str = Field(..., description="Status of the operation")
processed_count: int = Field(..., description="Number of emails processed")
message_ids: List[str] = Field(..., description="List of processed message IDs")
class AgentEmailResponse(BaseModel):
"""Structured response from the Agent for email processing."""
action: Litera
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key