MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / fetchAssistantsData

Function fetchAssistantsData

frontend/src/Redux/actions.ts:123–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 };
122};
123export const fetchAssistantsData = () => {
124 return (dispatch: any) => {
125 const project_base_url = 'api/v1'
126
127 dispatch(fetchAssistantRequest());
128 request.get(`${project_base_url}/ui/assistants?limit=20`)
129 .then(response => {
130 dispatch(fetchAssistantSuccess(response));
131 })
132 .catch(error => {
133 dispatch(fetchAssistantFailure(error.message));
134 });
135 };
136};
137export const fetchModelsData = (limit: number) => {
138 return (dispatch: any) => {
139 const project_base_url = 'api/v1'

Callers 4

handleRequestFunction · 0.90
onDeleteConfirmFunction · 0.90
handleRequestFunction · 0.90
ProjectHomeFunction · 0.90

Calls 4

fetchAssistantRequestFunction · 0.85
fetchAssistantSuccessFunction · 0.85
fetchAssistantFailureFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected