agentapi

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 InitTavilyResearchReq struct {
	Topic            string               `json:"topic"`
	PreviousResearch string               `json:"previousResearch"`
	CitationFormat   string               `json:"citation_format"` // numbered, mla, apa, chicago
	Model            string               `json:"model"`           // mini, pro, auto
	OutputSchema     *tavily.OutputSchema `json:"output_schema"`
}

type TavilyBackgroundCheckAspect added in v0.0.6

type TavilyBackgroundCheckAspect struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Example     string `json:"example"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL