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

goal

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package goal implements create_goal, get_goal, and update_goal tools. Mirrors Codex's ThreadGoal system (protocol.rs:3651, ThreadGoalSetParams, ThreadGoalGetParams).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGoalTool

type CreateGoalTool struct {
	// contains filtered or unexported fields
}

CreateGoalTool creates or replaces the active goal for the session.

func NewCreateGoalTool

func NewCreateGoalTool() *CreateGoalTool

func (*CreateGoalTool) BackfillInput

func (t *CreateGoalTool) BackfillInput(_ context.Context, in map[string]any) map[string]any

func (*CreateGoalTool) Call

func (*CreateGoalTool) CheckPermissions

func (t *CreateGoalTool) CheckPermissions(_ context.Context, in map[string]any, _ tool.ToolUseContext) types.PermissionResult

func (*CreateGoalTool) Definition

func (t *CreateGoalTool) Definition() tool.Definition

func (*CreateGoalTool) Description

func (t *CreateGoalTool) Description(_ context.Context) (string, error)

func (*CreateGoalTool) FormatResult

func (t *CreateGoalTool) FormatResult(data any) string

func (*CreateGoalTool) IsConcurrencySafe

func (t *CreateGoalTool) IsConcurrencySafe(_ map[string]any) bool

func (*CreateGoalTool) IsEnabled

func (t *CreateGoalTool) IsEnabled() bool

func (*CreateGoalTool) IsReadOnly

func (t *CreateGoalTool) IsReadOnly(_ map[string]any) bool

func (*CreateGoalTool) ValidateInput

func (t *CreateGoalTool) ValidateInput(_ context.Context, in map[string]any) (map[string]any, error)

type GetGoalTool

type GetGoalTool struct {
	// contains filtered or unexported fields
}

GetGoalTool returns the current goal for the session.

func NewGetGoalTool

func NewGetGoalTool() *GetGoalTool

func (*GetGoalTool) BackfillInput

func (t *GetGoalTool) BackfillInput(_ context.Context, in map[string]any) map[string]any

func (*GetGoalTool) Call

func (*GetGoalTool) CheckPermissions

func (t *GetGoalTool) CheckPermissions(_ context.Context, in map[string]any, _ tool.ToolUseContext) types.PermissionResult

func (*GetGoalTool) Definition

func (t *GetGoalTool) Definition() tool.Definition

func (*GetGoalTool) Description

func (t *GetGoalTool) Description(_ context.Context) (string, error)

func (*GetGoalTool) FormatResult

func (t *GetGoalTool) FormatResult(data any) string

func (*GetGoalTool) IsConcurrencySafe

func (t *GetGoalTool) IsConcurrencySafe(_ map[string]any) bool

func (*GetGoalTool) IsEnabled

func (t *GetGoalTool) IsEnabled() bool

func (*GetGoalTool) IsReadOnly

func (t *GetGoalTool) IsReadOnly(_ map[string]any) bool

func (*GetGoalTool) ValidateInput

func (t *GetGoalTool) ValidateInput(_ context.Context, in map[string]any) (map[string]any, error)

type UpdateGoalTool

type UpdateGoalTool struct {
	// contains filtered or unexported fields
}

UpdateGoalTool updates the status and/or objective of the active goal.

func NewUpdateGoalTool

func NewUpdateGoalTool() *UpdateGoalTool

func (*UpdateGoalTool) BackfillInput

func (t *UpdateGoalTool) BackfillInput(_ context.Context, in map[string]any) map[string]any

func (*UpdateGoalTool) Call

func (*UpdateGoalTool) CheckPermissions

func (t *UpdateGoalTool) CheckPermissions(_ context.Context, in map[string]any, _ tool.ToolUseContext) types.PermissionResult

func (*UpdateGoalTool) Definition

func (t *UpdateGoalTool) Definition() tool.Definition

func (*UpdateGoalTool) Description

func (t *UpdateGoalTool) Description(_ context.Context) (string, error)

func (*UpdateGoalTool) FormatResult

func (t *UpdateGoalTool) FormatResult(data any) string

func (*UpdateGoalTool) IsConcurrencySafe

func (t *UpdateGoalTool) IsConcurrencySafe(_ map[string]any) bool

func (*UpdateGoalTool) IsEnabled

func (t *UpdateGoalTool) IsEnabled() bool

func (*UpdateGoalTool) IsReadOnly

func (t *UpdateGoalTool) IsReadOnly(_ map[string]any) bool

func (*UpdateGoalTool) ValidateInput

func (t *UpdateGoalTool) ValidateInput(_ context.Context, in map[string]any) (map[string]any, error)

Jump to

Keyboard shortcuts

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