Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xsline OpenChatCut Agent Session Generation

From Leeroopedia
Knowledge Sources
Domains Agent, Types
Last Updated 2026-10-22 14:00 GMT

Overview

Shared contract for agent session generation, defining generation request/response types and validation.

Description

The Agent Session Generation module defines shared types for agent session generation operations. Includes request/response types and type guards for validating generation parameters.

Usage

  • Agent sessions:*** Shared between server and agent for generation operations.

Code Reference

Source Location

  • Repository:*** OpenChatCut
  • File:*** shared/agent-session-generation.ts
  • Lines:*** 1-57

Signature

export interface AgentSessionGenerationRequest {
  prompt: string;
  model?: string;
  tools?: string[];
}

export function isAgentSessionGenerationRequest(value: unknown): value is AgentSessionGenerationRequest;

Import

import { isAgentSessionGenerationRequest, type AgentSessionGenerationRequest } from '../shared/agent-session-generation.ts';

I/O Contract

This module exports types and type guards only.

Usage Examples

Using Generation Contract

import { isAgentSessionGenerationRequest } from '../shared/agent-session-generation.ts';

if (isAgentSessionGenerationRequest(body)) { /* valid */ }

Related Pages

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment