Documentation
¶
Index ¶
- func BuildInstructions(data prompt.SectionData) string
- func ReadProjectInstructions(wd string) string
- type Agent
- func (a *Agent) Cancel(id string)
- func (a *Agent) Close() error
- func (a *Agent) DeleteSession(_ context.Context, id string) error
- func (a *Agent) Effort() (string, []string)
- func (a *Agent) FetchModels(ctx context.Context)
- func (a *Agent) HasSession(id string) bool
- func (a *Agent) ListSessions(_ context.Context) ([]code.SessionInfo, error)
- func (a *Agent) LoadSession(_ context.Context, id string) error
- func (a *Agent) Messages(id string) []harness.Message
- func (a *Agent) Models() ([]code.Model, string)
- func (a *Agent) Modes(sessionID string) ([]code.Mode, string)
- func (a *Agent) Name() string
- func (a *Agent) NewSession(_ context.Context) (string, error)
- func (a *Agent) Save(id string) error
- func (a *Agent) Send(ctx context.Context, id string, input []harness.Content) iter.Seq2[harness.Message, error]
- func (a *Agent) SessionsDir() string
- func (a *Agent) SetEffort(_ context.Context, value string) error
- func (a *Agent) SetMode(_ context.Context, sessionID, modeID string) error
- func (a *Agent) SetModel(_ context.Context, id string) error
- func (a *Agent) SetUI(ui code.UI)
- func (a *Agent) Tools(id string) []tool.Tool
- func (a *Agent) Usage(id string) harness.Usage
- func (a *Agent) Workspace() *code.Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildInstructions ¶
func BuildInstructions(data prompt.SectionData) string
func ReadProjectInstructions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) FetchModels ¶ added in v0.8.2
func (*Agent) HasSession ¶
func (*Agent) ListSessions ¶
func (*Agent) SessionsDir ¶
Click to show internal directories.
Click to hide internal directories.