MCPcopy Index your code
hub / github.com/coder/coder / stopAfterPlanTools

Function stopAfterPlanTools

coderd/x/chatd/chatd.go:6663–6677  ·  view source on GitHub ↗
(
	planMode database.NullChatPlanMode,
	parentChatID uuid.NullUUID,
)

Source from the content-addressed store, hash-verified

6661}
6662
6663func stopAfterPlanTools(
6664 planMode database.NullChatPlanMode,
6665 parentChatID uuid.NullUUID,
6666) map[string]struct{} {
6667 if !planMode.Valid || planMode.ChatPlanMode != database.ChatPlanModePlan {
6668 return nil
6669 }
6670 stopTools := map[string]struct{}{
6671 "propose_plan": {},
6672 }
6673 if !parentChatID.Valid {
6674 stopTools["ask_user_question"] = struct{}{}
6675 }
6676 return stopTools
6677}
6678
6679func stopAfterBehaviorTools(
6680 planMode database.NullChatPlanMode,

Callers 3

TestStopAfterPlanToolsFunction · 0.85
stopAfterBehaviorToolsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestStopAfterPlanToolsFunction · 0.68