Buckets:

download
raw
596 Bytes
from typing import Any, Dict, List, Optional
from langchain_core.tools import tool
@tool
async def image_search(
query: str,
tenant_id: Optional[str] = None,
num_results: int = 10,
safe_search: str = "moderate",
job_id: Optional[str] = None,
) -> Dict[str, Any]:
"""Search for images by query and return a list of results."""
if not query:
raise ValueError("image_search requires 'query'.")
if num_results <= 0:
num_results = 10
results: List[Dict[str, Any]] = []
return {"query": query, "results": results, "provider": "image_search"}

Xet Storage Details

Size:
596 Bytes
·
Xet hash:
628e1e8f158a2d7371f81e58437893c1be065034cac8235e2ef2382b4399bae7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.