Module Space.TextSource

Sourcetype element = string

String space for textual observations or actions.

Sourceval create : ?charset:string -> ?max_length:int -> unit -> element t

create ~charset ~max_length () creates a text space.

Valid values are strings satisfying:

  • All characters appear in charset (if provided)
  • Length <= max_length (if provided)

Common use: Text-based environments, language model actions, or string commands.