🖥️
carter-js V4
  • carter-js
  • 💬Conversation
    • Say
    • Interactions
    • Opener
    • History
    • Speak
  • 🎱Skills
    • Basics
  • Other Features
    • Response Times
    • Personalise
    • Context
  • More
    • Changelog
    • Further Reading
    • carter-py
Powered by GitBook
On this page
  1. Other Features

Context

Provide contextual information to your agent

PreviousPersonaliseNextChangelog

Last updated 1 year ago

You can just provide context without an accompanying message to your agent using carter.context(), which calls the carter /context endpoint.

Please see the for a rundown of when and when not to use it.

//carter agent already created

const response = carter.context('The player is wearing a blue t-shirt')
console.log(response.success)

context() simply returns the carter data to you, an object with a success and error property.

{ success: boolean, error: string }

It does not create or store an interaction object.

carter docs