Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitTavilyResearchReq ¶
type TavilyBackgroundCheckAspect ¶ added in v0.0.6
type TavilyBackgroundCheckReq ¶ added in v0.0.8
type TavilyBackgroundCheckReq struct {
Language string `json:"language"`
Entity string `json:"entity"` // entity name
Context string `json:"context"` // additional context about the entity or the research
Asepcts []TavilyBackgroundCheckAspect `json:"asepcts"` // aspects of the entity that should be answered
Model string `json:"model"` // mini, pro, auto
}
type TavilyBackgroundCheckRes ¶ added in v0.0.8
type TavilyBackgroundCheckRes struct {
Report string `json:"report"`
Sources []Source `json:"sources"`
}
func TavilBackgroundCheck ¶ added in v0.0.6
func TavilBackgroundCheck(rail miso.Rail, apiKey string, req TavilyBackgroundCheckReq, ops ...tavily.StreamResearchOpFunc) (TavilyBackgroundCheckRes, error)
Run Tavily background check with predefined prompt.
If you don't want the prompt, just call Tvaily's API yourself, or use tavily.StreamResearch directly.
func TavilBackgroundParallelCheck ¶ added in v0.0.10
func TavilBackgroundParallelCheck(rail miso.Rail, apiKey string, req TavilyBackgroundCheckReq, pool async.AsyncPool, batchSize int, ops ...tavily.StreamResearchOpFunc) ([]TavilyBackgroundCheckRes, error)
Run multiple Tavily background check with predefined prompt in parallel.
If you don't want the prompt, just call Tvaily's API yourself, or use tavily.StreamResearch directly.
type TavilyDeepResearchRes ¶ added in v0.0.8
type TavilyDeepResearchRes struct {
Report string `json:"report"`
Sources []Source `json:"sources"`
}
func TavilyDeepResearch ¶ added in v0.0.8
func TavilyDeepResearch(rail miso.Rail, apiKey string, req InitTavilyResearchReq, ops ...tavily.StreamResearchOpFunc) (TavilyDeepResearchRes, error)
Run Tavily Deep Research with predefined prompt.
If you don't want the prompt, just call Tvaily's API yourself, or use tavily.StreamResearch directly.
Click to show internal directories.
Click to hide internal directories.