GHHG10/CodeServer / opencode /packages /tui /src /util /tool-display.ts
GHHG10's picture
download
raw
626 Bytes
export function webSearchProviderLabel(provider: unknown) {
if (provider === "parallel") return "Parallel Web Search"
if (provider === "exa") return "Exa Web Search"
return "Web Search"
}
export function toolDisplayMetadata(state: unknown): Record<string, unknown> {
if (!state || typeof state !== "object" || Array.isArray(state)) return {}
if (!("status" in state) || state.status === "pending") return {}
if (!("structured" in state) || !state.structured || typeof state.structured !== "object") return {}
if (Array.isArray(state.structured)) return {}
return state.structured as Record<string, unknown>
}

Xet Storage Details

Size:
626 Bytes
·
Xet hash:
408f5973303110d87508dd3fa9782b14f7ac148950dbfddcfd6389156fb38248

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