Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultStrategy = `` /* 422-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func BuildMCPConfig ¶
func BuildPrompt ¶
func BuildSystemPrompt ¶
Types ¶
type LLMStrategy ¶
type LLMStrategy struct {
// contains filtered or unexported fields
}
LLMStrategy implements engine.Strategy using the Claude API.
func NewLLMStrategy ¶
func NewLLMStrategy(apiKey, model string, persona *Persona) *LLMStrategy
NewLLMStrategy creates a new LLM-based strategy. If apiKey is empty, the SDK reads ANTHROPIC_API_KEY from the environment.
func (*LLMStrategy) DecideAction ¶
func (s *LLMStrategy) DecideAction(dice [5]int, rollCount int, scorecard engine.Scorecard, available []engine.Category) engine.TurnAction
func (*LLMStrategy) Name ¶
func (s *LLMStrategy) Name() string
type Persona ¶
type Persona struct {
Name string
Personality string
Strategy string
Catchphrase string
Raw string
}
Persona represents a loaded character persona from a markdown file.
func LoadPersona ¶
LoadPersona reads and parses a persona markdown file. Format:
# Character Name ## 性格 ... ## 戦略 ... ## 口癖 ...
Click to show internal directories.
Click to hide internal directories.