28 lines
1007 B
JavaScript
28 lines
1007 B
JavaScript
import { qvacStatus } from '../daemon/qvac-master.js';
|
|
|
|
export function createRuntimeTools({ computer, camera } = {}) {
|
|
return [
|
|
{
|
|
name: 'jarvis_status',
|
|
description: 'Return the local Jarvis QuantumVerse Automatic Computer master status.',
|
|
parameters: { type: 'object', properties: {} },
|
|
execute: () => {
|
|
const qvac = qvacStatus();
|
|
return {
|
|
local: qvac.agentInference !== 'groq',
|
|
agentInference: qvac.agentInference || 'local',
|
|
qvac,
|
|
computer_use: computer?.status?.() || { active: false, backend: 'none' },
|
|
camera: camera?.status?.() || { enabled: false, active: false, backend: 'none' },
|
|
};
|
|
},
|
|
},
|
|
{
|
|
name: 'cu_status',
|
|
description: 'Return whether the user pressed Allow now for computer use, and the remaining step budget.',
|
|
parameters: { type: 'object', properties: {} },
|
|
execute: () => computer?.status?.() || { active: false, backend: 'none' },
|
|
},
|
|
];
|
|
}
|