Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BettaFishState ¶
type BettaFishState struct {
// User input
Query string `json:"query"`
// QueryEngine State
ReportTitle string `json:"report_title"`
Paragraphs []*Paragraph `json:"paragraphs"`
NewsResults []string `json:"news_results"` // The compiled news report(s)
FinalReport string `json:"final_report"` // The final combined report
// MediaEngine State
MediaResults []string `json:"media_results"`
// InsightEngine State
InsightResults []string `json:"insight_results"`
// ForumEngine State
Discussion []string `json:"discussion"`
}
BettaFishState represents the global state of the BettaFish system.
func NewBettaFishState ¶
func NewBettaFishState(query string) *BettaFishState
func (*BettaFishState) ToJSON ¶
func (s *BettaFishState) ToJSON() string
Helper to serialize state for LLM prompts
type Paragraph ¶
type Paragraph struct {
Title string `json:"title"`
Content string `json:"content"` // Expected content description
Research *ResearchState `json:"research"`
}
Paragraph represents a section of the report.
type ResearchState ¶
type ResearchState struct {
SearchQueries []string `json:"search_queries"`
SearchResults map[string][]SearchResult `json:"search_results"` // Query -> Results
LatestSummary string `json:"latest_summary"`
Completed bool `json:"completed"`
// contains filtered or unexported fields
}
ResearchState tracks the research progress for a paragraph.
func NewResearchState ¶
func NewResearchState() *ResearchState
func (*ResearchState) AddSearchResults ¶
func (rs *ResearchState) AddSearchResults(query string, results []SearchResult)
func (*ResearchState) MarkCompleted ¶
func (rs *ResearchState) MarkCompleted()
type SearchResult ¶
type SearchResult struct {
Title string `json:"title"`
URL string `json:"url"`
Content string `json:"content"`
Score float64 `json:"score"`
RawContent string `json:"raw_content,omitempty"`
PublishedDate string `json:"published_date,omitempty"`
}
SearchResult represents a single search result.
Click to show internal directories.
Click to hide internal directories.