this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(tools): add barrel exports for tool modules

Exports all tool modules and re-exports dispatcher utilities:
- Tool definitions for Letta registration
- Tool handlers for local dispatch
- Registry and conversion functions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

alice 9c4ae42b 75bd5c7f

+160
+160
src/tools/index.ts
··· 1 + /** 2 + * Tools module for Letta agents 3 + * 4 + * This module provides tool definitions and handlers for ADHD support features: 5 + * - parse_brain_dump: Extract tasks and ideas from free-form text 6 + * - break_down_task: Decompose complex tasks into manageable steps 7 + * - save_item: Save a task, idea, or reminder 8 + * - update_item: Update an existing item's status or details 9 + * - get_open_items: Retrieve open tasks and reminders 10 + * 11 + * Tools are registered with the dispatcher and can be attached to Letta agents. 12 + */ 13 + 14 + // Export dispatcher types and functions 15 + export { 16 + type ToolContext, 17 + type ToolHandler, 18 + type ToolDefinition, 19 + toolRegistry, 20 + dispatchTool, 21 + toLettaToolCreate, 22 + getAllLettaToolsCreate, 23 + registerTool, 24 + } from './dispatcher'; 25 + 26 + // Placeholder types for future tool implementations 27 + // These will be implemented in subsequent tasks 28 + 29 + /** 30 + * Arguments for parse_brain_dump tool 31 + */ 32 + export interface ParseBrainDumpArgs { 33 + /** Free-form text dump from user */ 34 + text: string; 35 + } 36 + 37 + /** 38 + * Result from parse_brain_dump tool 39 + */ 40 + export interface ParseBrainDumpResult { 41 + /** Extracted tasks */ 42 + tasks: { 43 + title: string; 44 + description?: string; 45 + priority?: 'low' | 'medium' | 'high'; 46 + }[]; 47 + /** Extracted ideas or notes */ 48 + ideas: { 49 + content: string; 50 + }[]; 51 + } 52 + 53 + /** 54 + * Arguments for break_down_task tool 55 + */ 56 + export interface BreakDownTaskArgs { 57 + /** Task description to break down */ 58 + task: string; 59 + /** Optional parent task ID */ 60 + parentId?: string; 61 + } 62 + 63 + /** 64 + * Result from break_down_task tool 65 + */ 66 + export interface BreakDownTaskResult { 67 + /** Original task */ 68 + original: string; 69 + /** Broken down subtasks */ 70 + subtasks: { 71 + id: string; 72 + content: string; 73 + order: number; 74 + }[]; 75 + } 76 + 77 + /** 78 + * Arguments for save_item tool 79 + */ 80 + export interface SaveItemArgs { 81 + /** Type of item to save */ 82 + type: 'task' | 'idea' | 'reminder'; 83 + /** Item title or content */ 84 + title: string; 85 + /** Optional description */ 86 + description?: string; 87 + /** Optional priority for tasks */ 88 + priority?: 'low' | 'medium' | 'high'; 89 + /** Optional due date (ISO 8601 string) */ 90 + dueDate?: string; 91 + } 92 + 93 + /** 94 + * Result from save_item tool 95 + */ 96 + export interface SaveItemResult { 97 + /** ID of saved item */ 98 + id: string; 99 + /** Success message */ 100 + message: string; 101 + } 102 + 103 + /** 104 + * Arguments for update_item tool 105 + */ 106 + export interface UpdateItemArgs { 107 + /** ID of item to update */ 108 + id: string; 109 + /** New status */ 110 + status?: 'open' | 'in_progress' | 'completed' | 'cancelled'; 111 + /** Updated title */ 112 + title?: string; 113 + /** Updated description */ 114 + description?: string; 115 + /** Updated priority */ 116 + priority?: 'low' | 'medium' | 'high'; 117 + } 118 + 119 + /** 120 + * Result from update_item tool 121 + */ 122 + export interface UpdateItemResult { 123 + /** ID of updated item */ 124 + id: string; 125 + /** Success message */ 126 + message: string; 127 + } 128 + 129 + /** 130 + * Arguments for get_open_items tool 131 + */ 132 + export interface GetOpenItemsArgs { 133 + /** Filter by type (optional) */ 134 + type?: 'task' | 'idea' | 'reminder'; 135 + /** Maximum number of items to return */ 136 + limit?: number; 137 + } 138 + 139 + /** 140 + * Result from get_open_items tool 141 + */ 142 + export interface GetOpenItemsResult { 143 + /** List of open items */ 144 + items: { 145 + id: string; 146 + type: 'task' | 'idea' | 'reminder'; 147 + title: string; 148 + description?: string; 149 + priority?: 'low' | 'medium' | 'high'; 150 + status: 'open' | 'in_progress'; 151 + createdAt: string; 152 + dueDate?: string; 153 + }[]; 154 + } 155 + 156 + // Import tool implementations 157 + import './items'; 158 + import './capture'; 159 + import './context'; 160 + import './breakdown';