Documentation
¶
Overview ¶
Package autotitle generates short, human-readable session titles from a conversation using a cheap LLM call. It is shared by all frontends so the auto-titling behavior stays identical across them.
Index ¶
Constants ¶
View Source
const MaxTitleLen = 60
MaxTitleLen caps the generated title length (in runes).
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(ctx context.Context, factory ProviderFactory, model core.Model, msgs []core.AgentMessage) (string, error)
Generate makes a one-shot LLM call to produce a session title from the conversation messages using model. Returns an error if the provider can't be built or the call produces no usable text.
Types ¶
Click to show internal directories.
Click to hide internal directories.