Tent.js
DocsBlogReleases

Start with

  • Installationtopic.start
  • The wordstopic.words
  • Plans: how rows are asked fortopic.plans
  • Screen files and stubstopic.screens
  • Tests of an apptopic.tests
Light or dark
  • Getting started
  • Core ideas
  • Data
  • Screens
  • Work
  • Testing
  • Running an app
  • Building on Tent.js

Reference

  • Words
    • action
    • agent
    • allow
    • anyone
    • asset
    • avg
    • backfill
    • between
    • boolean
    • calc
    • caller
    • ceil
    • change
    • choice
    • chunks
    • col
    • command
    • component
    • concat
    • contains
    • count
    • cron
    • date
    • day
    • dayOf
    • del
    • each
    • earlier
    • emit
    • evals
    • event
    • every
    • expect
    • fail
    • file
    • fingerprint
    • floor
    • flow
    • get
    • given
    • incoming
    • input
    • join
    • json
    • judge
    • later
    • least
    • link
    • list
    • lower
    • max
    • message
    • messages
    • min
    • model
      • abilities
      • call
      • countBy
      • fallback
      • hosted
      • input
      • job
      • key
      • limits
      • name
      • options
      • output
      • provider
      • takes
      • tries
      • units
      • url
      • voices
      • was
    • most
    • noOtherPeople
    • noPersonal
    • now
    • number
    • object
    • optimistic
    • patch
    • post
    • project
    • put
    • python
    • query
    • random
    • range
    • read
    • request
    • role
    • round
    • route
    • s3
    • sameSecret
    • screen
    • secret
    • seed
    • service
    • setting
    • slice
    • start
    • startsWith
    • sum
    • table
    • testApp
    • text
    • token
    • trim
    • upper
    • vector
    • verified
    • where
  • Tags
  • Hooks
  • Handles
  • Adapters
  • Commands
  • Codes
DocsOptions

Option

tries of model

How often the same model is tried in all before the next one.

Value

A number, or { max, wait }. 2 when left out.

Example

TypeScript
export const writer = model('writer', {
  provider: 'service',
  name: 'claude-sonnet-5-5',
  tries: { max: 2, wait: '5 seconds' },
})

See also

word.model

On this page

  • Value
  • Example
  • See also
Tent.js
DocsBlogReleasesGitHub
Tent.js
  • Getting started
  • Core ideas
  • Data
  • Screens
  • Work
  • Testing
  • Running an app
  • Building on Tent.js

Reference

  • Words
    • action
    • agent
    • allow
    • anyone
    • asset
    • avg
    • backfill
    • between
    • boolean
    • calc
    • caller
    • ceil
    • change
    • choice
    • chunks
    • col
    • command
    • component
    • concat
    • contains
    • count
    • cron
    • date
    • day
    • dayOf
    • del
    • each
    • earlier
    • emit
    • evals
    • event
    • every
    • expect
    • fail
    • file
    • fingerprint
    • floor
    • flow
    • get
    • given
    • incoming
    • input
    • join
    • json
    • judge
    • later
    • least
    • link
    • list
    • lower
    • max
    • message
    • messages
    • min
    • model
      • abilities
      • call
      • countBy
      • fallback
      • hosted
      • input
      • job
      • key
      • limits
      • name
      • options
      • output
      • provider
      • takes
      • tries
      • units
      • url
      • voices
      • was
    • most
    • noOtherPeople
    • noPersonal
    • now
    • number
    • object
    • optimistic
    • patch
    • post
    • project
    • put
    • python
    • query
    • random
    • range
    • read
    • request
    • role
    • round
    • route
    • s3
    • sameSecret
    • screen
    • secret
    • seed
    • service
    • setting
    • slice
    • start
    • startsWith
    • sum
    • table
    • testApp
    • text
    • token
    • trim
    • upper
    • vector
    • verified
    • where
  • Tags
  • Hooks
  • Handles
  • Adapters
  • Commands
  • Codes