Spaces:
Runtime error
Runtime error
File size: 444 Bytes
e94d3a9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from typing import List, Optional
from pydantic import BaseModel, Field
class SearchItemResult(BaseModel):
url: str = Field(description="URL of result item.")
title: str = Field(description="Title of result item.")
description: str = Field(description="Description of result item.")
class SearchResult(BaseModel):
items: Optional[List[SearchItemResult]] = Field(
default=[], description="Search result items."
)
|