Context
Provide contextual information to your agent
You can just provide context without an accompanying message to your agent using carter.context()
, which calls the carter /context endpoint.
Please see the carter docs 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.
Last updated