Expand description
Process user input utilities - translates processUserInput.ts from TypeScript
This module handles processing user input, including text prompts, bash commands, slash commands, and attachments.
Structs§
- Agent
Definitions - Agent definitions
- Cursor
Position - Cursor position in IDE
- Effort
Value - Effort value for the model
- IdeSelection
- IDE selection
- Image
Dimensions - Image dimensions
- Image
Source - Image source for content blocks
- Pasted
Content - Pasted content from user
- Process
User Input Base Result - Result of processing user input
- Process
User Input Context - Process user input context - combines ToolUseContext and LocalJSXCommandContext (Extended to match TypeScript’s rich context with memory/skill tracking)
- Process
User Input Context Options - Process user input context options
- Process
User Input Options - Input for process_user_input function
- Query
Tracking - Query tracking for analytics
Enums§
- Content
Block Param - Content block parameter (similar to Anthropic SDK’s ContentBlockParam)
- Process
User Input - User input - either string or content blocks
- Prompt
Input Mode - Prompt input mode
- Query
Source - Query source enum
Functions§
- process_
user_ input - Process user input - main entry point