kb_update_professional
Update professional details including occupation, experience, skills, and education to maintain accurate personal knowledge for AI context.
Instructions
Update professional information (job, skills, experience, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| certifications | No | ||
| currentCompany | No | ||
| education | No | ||
| industry | No | ||
| occupation | No | ||
| role | No | ||
| skills | No | ||
| specializations | No | ||
| yearsOfExperience | No |
Implementation Reference
- src/index.ts:569-579 (handler)Handler for kb_update_professional tool call: invokes KnowledgeManager.updateProfessional with input arguments and returns success confirmation.case 'kb_update_professional': { await km.updateProfessional(args as any); return { content: [ { type: 'text', text: '✅ Professional information updated successfully' } ] }; }
- src/index.ts:102-119 (schema)Tool registration and input schema definition for kb_update_professional in the tools list returned by ListToolsRequestHandler.{ name: 'kb_update_professional', description: 'Update professional information (job, skills, experience, etc.)', inputSchema: { type: 'object', properties: { occupation: { type: 'string' }, yearsOfExperience: { type: 'number' }, industry: { type: 'string' }, specializations: { type: 'array', items: { type: 'string' } }, currentCompany: { type: 'string' }, role: { type: 'string' }, skills: { type: 'array', items: { type: 'string' } }, certifications: { type: 'array', items: { type: 'string' } }, education: { type: 'array', items: { type: 'string' } } } } },
- src/KnowledgeManager.ts:159-172 (helper)Core implementation in KnowledgeManager: merges partial updates into professional section of knowledge base, logs change history, and persists to JSON file.async updateProfessional(updates: Partial<ProfessionalInfo>): Promise<void> { Object.entries(updates).forEach(([field, value]) => { const oldValue = (this.kb.professional as any)[field]; (this.kb.professional as any)[field] = value; this.addHistory({ action: oldValue === undefined ? 'add' : 'update', category: 'professional', field, oldValue, newValue: value }); }); await this.save(); }
- src/types.ts:12-22 (schema)TypeScript interface ProfessionalInfo defining the structure of professional information, matching the tool's inputSchema.export interface ProfessionalInfo { occupation?: string; yearsOfExperience?: number; industry?: string; specializations?: string[]; currentCompany?: string; role?: string; skills?: string[]; certifications?: string[]; education?: string[]; }