( ctx context.Context, t *testing.T, server *Server, parentChat database.Chat, args spawnAgentArgs, )
| 860 | } |
| 861 | |
| 862 | func 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 | |
| 881 | func requireSpawnAgentResponse(t *testing.T, resp fantasy.ToolResponse) struct { |
| 882 | ChatID string `json:"chat_id"` |
no test coverage detected