mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
30 lines
545 B
TypeScript
30 lines
545 B
TypeScript
import { ToolResponse } from '../types'
|
|
|
|
export interface TavilySearchResult {
|
|
title: string
|
|
url: string
|
|
content: string
|
|
score: number
|
|
images?: string[]
|
|
raw_content?: string
|
|
}
|
|
|
|
export interface TavilySearchResponse extends ToolResponse {
|
|
output: {
|
|
results: TavilySearchResult[]
|
|
answer?: string
|
|
query: string
|
|
images?: string[]
|
|
rawContent?: string
|
|
}
|
|
}
|
|
|
|
export interface TavilyExtractResponse extends ToolResponse {
|
|
output: {
|
|
content: string
|
|
title: string
|
|
url: string
|
|
rawContent?: string
|
|
}
|
|
}
|