Documentation
¶
Overview ¶
Package deepresearch is a port of atomic-agents/deepresearch to secai. https://github.com/BrainBlend-AI/atomic-agents/blob/main/atomic-examples/deep-research/deep_research/main.py
Index ¶
- Constants
- Variables
- func LogArgs(args am.A) map[string]string
- func Pass(args *A) am.A
- func PassRpc(args *A) am.A
- type A
- type AA
- type AARpc
- type ARpc
- type Agent
- func (a *Agent) AnsweredEnter(e *am.Event) bool
- func (a *Agent) AnsweredState(e *am.Event)
- func (a *Agent) AnsweringState(e *am.Event)
- func (a *Agent) CheckingInfoState(e *am.Event)
- func (a *Agent) DisposedState(e *am.Event)
- func (a *Agent) ExceptionState(e *am.Event)
- func (a *Agent) Init(agent secai.AgentAPI) error
- func (a *Agent) InputPendingState(e *am.Event)
- func (a *Agent) InterruptedState(e *am.Event)
- func (a *Agent) LoopState(e *am.Event)
- func (a *Agent) ReadyEnter(e *am.Event) bool
- func (a *Agent) ScrapingState(e *am.Event)
- func (a *Agent) SearchingLLMState(e *am.Event)
- func (a *Agent) SearchingWebState(e *am.Event)
- func (a *Agent) StartState(e *am.Event)
- func (a *Agent) UIModeEnd(e *am.Event)
- func (a *Agent) UIModeState(e *am.Event)
- func (a *Agent) UIReadyEnter(e *am.Event) bool
- func (a *Agent) UISessConnState(e *am.Event)
- func (a *Agent) UISessDisconnState(e *am.Event)
- type Config
- type S
Constants ¶
View Source
const APrefix = "cook"
Variables ¶
View Source
var PassAA = shared.Pass
View Source
var Sj = shared.Sj
View Source
var Sl = shared.Sl
View Source
var Sp = shared.Sp
View Source
var StarterQuestions = Sp(`
1. Can you help me research the latest AI news?
2. Who won the Nobel Prize in Physics this year?
3. Where can I learn more about quantum computing?
`)
View Source
var WelcomeMessage = Sj(
"Welcome to Deep Research - your AI-powered research assistant! I can help you explore and ",
"understand any topic through detailed research and interactive discussion.",
)
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// inherit from LLM AgentLLM
*llmagent.AgentLLM
Config Config
TUIs []shared.UI
Msgs []*shared.Msg
// contains filtered or unexported fields
}
func NewResearch ¶
NewResearch returns a preconfigured instance of Agent.
func (*Agent) AnsweredState ¶
func (*Agent) AnsweringState ¶
func (*Agent) CheckingInfoState ¶
func (*Agent) DisposedState ¶
func (*Agent) ExceptionState ¶
func (*Agent) InputPendingState ¶
InputPendingState is a test mocking handler.
func (*Agent) InterruptedState ¶
func (*Agent) ScrapingState ¶
func (*Agent) SearchingLLMState ¶
func (*Agent) SearchingWebState ¶
func (*Agent) StartState ¶
func (*Agent) UIModeState ¶
func (*Agent) UISessConnState ¶
func (*Agent) UISessDisconnState ¶
type Config ¶
type Config struct {
OpenAIAPIKey string `arg:"env:OPENAI_API_KEY" help:"OpenAI API key."`
DeepseekAPIKey string `arg:"env:DEEPSEEK_API_KEY" help:"DeepSeek API key."`
TUIPort int `arg:"env:SECAI_TUI_PORT" help:"SSH port for the TUI." default:"7854"`
TUIHost string `arg:"env:SECAI_TUI_HOST" help:"SSH host for the TUI." default:"localhost"`
Mock bool `arg:"env:SECAI_MOCK" help:"Enable scenario mocking."`
ReqLimit int `arg:"env:SECAI_REQ_LIMIT" help:"Max LLM requests per session." default:"1000"`
}
Click to show internal directories.
Click to hide internal directories.