agentapi

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 Source added in v0.0.8

type Source struct {
	Favicon string `json:"favicon"`
	Title   string `json:"title"`
	URL     string `json:"url"`
}

type TavilyBackgroundCheckAspect added in v0.0.6

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

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.

Jump to

Keyboard shortcuts

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