|
|
@@ -40,3 +40,16 @@ export function useGlobalSync() {
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+export function useQueryOptions() {
|
|
|
+ return {
|
|
|
+ agents: (directory: string) => ({
|
|
|
+ queryKey: [directory, "agents"],
|
|
|
+ queryFn: async () => [],
|
|
|
+ }),
|
|
|
+ providers: (directory: string | null) => ({
|
|
|
+ queryKey: [directory, "providers"],
|
|
|
+ queryFn: async () => provider,
|
|
|
+ }),
|
|
|
+ }
|
|
|
+}
|