Documentation
¶
Overview ¶
Package persona handles loading and managing persona definitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles persona loading and retrieval.
func NewManager ¶
NewManager creates a new persona manager. If personaPath is empty, creates an empty manager.
func (*Manager) ApplyPersona ¶
ApplyPersona prepends persona content to the given prompt. If persona is empty or not found, returns the original prompt.
func (*Manager) GetPersona ¶
GetPersona returns the content of a persona by name. Returns empty string if persona not found.
func (*Manager) GetPersonaMCPConfig ¶
GetPersonaMCPConfig returns the path to the persona's associated MCP config file. Returns empty string if the persona has no associated MCP config.
func (*Manager) HasPersona ¶
HasPersona checks if a persona exists.
func (*Manager) ListPersonas ¶
ListPersonas returns a list of available persona names.