Vale CMS Need more than a rule playground? Explore
Asset Explorer

Transcript

A chat transcript, exposing only the model's turns so the prompts are never linted.

view textfsmai Vale ≥ 3.21.0 Source

Getting started

Save the file as config/views/Transcript.yml under your StylesPath, then:

[*.txt]
BasedOnStyles = Vale

View = Transcript

Transcript.yml

Pull named scopes out of a file Vale can’t otherwise parse.
# A chat transcript with `user:` and `assistant:` turns. Only the model's
# turns are exposed, so the prompts are never linted.
#
#   [*.txt]
#   BasedOnStyles = Vale
#   View = Transcript
engine: textfsm
template: |
  Value List Assistant (.*)
  Value List User (.*)

  Start
    ^assistant: ${Assistant} -> Assistant
    ^user: ${User} -> User

  Assistant
    ^(?:user|assistant): -> Continue.Record
    ^assistant: ${Assistant}
    ^user: ${User} -> User
    ^${Assistant}

  User
    ^(?:user|assistant): -> Continue.Record
    ^user: ${User}
    ^assistant: ${Assistant} -> Assistant
    ^${User}
scopes:
  - name: assistant
    expr: Assistant
    type: md