Help us shape the future of Go! Take the 2026 Go Developer Survey

nexssflow

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

func Bundle

func Bundle(raw map[string]string) compiler.Bundle

Bundle exposes AI actions as a Flow v0.42 library using canonical names.

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 LLMDecl

type LLMDecl struct {
	Provider string
	Model    string
	BaseURL  string
}

LLMDecl contains the per-call values accepted by ai.prompt.

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.

Jump to

Keyboard shortcuts

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