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

Function runSpawnAgentTool

coderd/x/chatd/subagent_internal_test.go:862–879  ·  view source on GitHub ↗
(
	ctx context.Context,
	t *testing.T,
	server *Server,
	parentChat database.Chat,
	args spawnAgentArgs,
)

Source from the content-addressed store, hash-verified

860}
861
862func runSpawnAgentTool(
863 ctx context.Context,
864 t *testing.T,
865 server *Server,
866 parentChat database.Chat,
867 args spawnAgentArgs,
868) fantasy.ToolResponse {
869 t.Helper()
870 return runSubagentTool(
871 ctx,
872 t,
873 server,
874 parentChat,
875 parentChat.LastModelConfigID,
876 spawnAgentToolName,
877 args,
878 )
879}
880
881func requireSpawnAgentResponse(t *testing.T, resp fantasy.ToolResponse) struct {
882 ChatID string `json:"chat_id"`

Calls 2

runSubagentToolFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected