Module exposing: WebSearchResult
# Source: https://github.com/zylon-ai/private-gpt | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from typing import Any
from pydantic import BaseModel
class WebSearchResult(BaseModel):
idx: int | None = None
title: str
url: str
favicon_url: str | None = None
description: str
age: str | None = None
content: str | None = None
content_type: str | None = None
tokens: int = 0
metadata: dict[str, Any] | None = None
is_relevant: bool = False
is_in_error: bool = False
def __str__(self) -> str:
result = ""
if self.idx is not None:
result += f"{self.idx}. "
result += f"{self.title}\n"
resul
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key