Documentation
¶
Index ¶
- func TavilBackgroundCheck(rail miso.Rail, apiKey string, req InitTavilyBackgroundCheckReq, ...) (string, error)
- func TavilDeepResearch(rail miso.Rail, apiKey string, req InitTavilyResearchReq, ...) (string, error)
- type InitTavilyBackgroundCheckReq
- type InitTavilyResearchReq
- type TavilyBackgroundCheckAspect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TavilBackgroundCheck ¶ added in v0.0.6
func TavilBackgroundCheck(rail miso.Rail, apiKey string, req InitTavilyBackgroundCheckReq, ops ...tavily.StreamResearchOpFunc) (string, 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 TavilDeepResearch ¶
func TavilDeepResearch(rail miso.Rail, apiKey string, req InitTavilyResearchReq, ops ...tavily.StreamResearchOpFunc) (string, 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.
Types ¶
type InitTavilyBackgroundCheckReq ¶ added in v0.0.6
type InitTavilyBackgroundCheckReq 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 InitTavilyResearchReq ¶
type TavilyBackgroundCheckAspect ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.