Documentation
¶
Overview ¶
Package nexssflow exposes reusable AI actions to Flow v0.42 and newer.
Index ¶
Constants ¶
View Source
const ID = "ai"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalOptions ¶
type GlobalOptions struct {
APIKeyEnv string
Timeout time.Duration
DefaultModel string
Provider string
BaseURL string
}
GlobalOptions are supplied by Flow's @require options block.
type RoleAgent ¶
type RoleAgent struct {
Name string `json:"name"`
Role string `json:"role"`
Instructions string `json:"instructions"`
Model string `json:"model,omitempty"`
}
RoleAgent is one role declared for a single ai.team invocation. It is not a durable actor: its only turn is run in order, then its output is added to the in-run conversation for later roles.
type RoleTurn ¶
type RoleTurn struct {
Name string `json:"name"`
Role string `json:"role"`
Content string `json:"content"`
Model string `json:"model,omitempty"`
PromptTokens int `json:"prompt_tokens"`
CompTokens int `json:"completion_tokens"`
}
RoleTurn is the single completion produced by one declared role agent.
Click to show internal directories.
Click to hide internal directories.