Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalArgs ¶
CanonicalArgs returns a deterministic, canonical JSON representation of the provided args map. Keys are sorted recursively so that semantically equal argument objects yield identical strings regardless of original key order. The empty map or nil returns an empty string for convenience when building composite keys.
func MapEqual ¶
MapEqual reports whether two maps contain the same keys and the corresponding values are deeply equal. Nil and empty maps are treated as equivalent.
Prior implementation ignored type mismatches which could lead to false positives (e.g. string "1" vs number 1). This version returns false on any differing key, value or value type.
func RefinePlan ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Run ¶
func (s *Service) Run(ctx context.Context, genInput *core2.GenerateInput, genOutput *core2.GenerateOutput) (*execution.Plan, error)
func (*Service) TurnToolResults ¶ added in v0.1.7
TurnToolResults returns a defensive copy of the remembered successful tool results for a turn. Agent.runPlanLoop uses this to rehydrate prompt history across iterations when transcript history is temporarily missing current-turn assistant/tool messages.