All files / src/llm-orchestration/action-handlers/dto get-session-history.args.dto.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 387x                       7x           7x                 7x               7x    
import {
  IsOptional,
  IsBoolean,
  IsNumber,
  Min,
  IsString,
} from 'class-validator';
 
/**
 * Arguments for the get_session_history tool.
 * Returns the session history in the same format sent to the AI (LlmContent).
 */
export class GetSessionHistoryArgsDto {
  /**
   * Optional session ID. If not provided, uses the current session from execution context.
   */
  @IsOptional()
  @IsString()
  session_id?: string;
 
  /**
   * Maximum number of conversation turns to return.
   * If not provided, returns all turns.
   */
  @IsOptional()
  @IsNumber()
  @Min(1)
  limit?: number;
 
  /**
   * Whether to include the system prompt in the returned history.
   * Default: false
   */
  @IsOptional()
  @IsBoolean()
  include_system_prompt?: boolean;
}