fix Owliver ai chat
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
ACTIVITY_CAPABILITIES, ADMIN_CANDIDATE_CAPABILITIES, CONTROL_CENTER_CAPABILITIES,
|
||||
respondActivity, respondAdminCandidates, respondControlCenter,
|
||||
} from './capabilities/admin';
|
||||
import { TALENT_CAPABILITIES, respondTalent } from './capabilities/talent';
|
||||
|
||||
/**
|
||||
* Page contexts for the Krow AI Assistant.
|
||||
@@ -16,8 +15,8 @@ import { TALENT_CAPABILITIES, respondTalent } from './capabilities/talent';
|
||||
* live data in `dynamic.js`, not written here. A context only declares what this
|
||||
* page's assistant can *do*: its capabilities and its free-text responder.
|
||||
*
|
||||
* `needsWorkerProfile` gates the one query with a side effect, so employer and
|
||||
* admin sessions never touch worker-profile records.
|
||||
* Krow AI serves Employer and Admin. The talent portal has Owliver, a separate
|
||||
* product with its own UI and workflow — nothing here targets it.
|
||||
*/
|
||||
export const ASSISTANT_CONTEXTS = {
|
||||
'employer.overview': {
|
||||
@@ -56,13 +55,6 @@ export const ASSISTANT_CONTEXTS = {
|
||||
capabilities: ACTIVITY_CAPABILITIES,
|
||||
respond: respondActivity,
|
||||
},
|
||||
'talent.portal': {
|
||||
id: 'talent.portal',
|
||||
page: 'My Portal',
|
||||
capabilities: TALENT_CAPABILITIES,
|
||||
respond: respondTalent,
|
||||
needsWorkerProfile: true,
|
||||
},
|
||||
};
|
||||
|
||||
export const getContext = (id) => ASSISTANT_CONTEXTS[id] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user