Skip to main content
POST
/
env
/
reset
JavaScript
import Client from 'agentlin_client';

const client = new Client({
  apiKey: process.env['AGENTLIN_API_KEY'], // This is the default and can be omitted
});

const response = await client.env.reset({ session_id: 'session_id' });

console.log(response.observation);
{
  "observation": {},
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "<string>",
        "parameters": {},
        "description": "<string>",
        "strict": false
      }
    }
  ],
  "done": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

重置环境请求

session_id
string
required
seed
integer | null
options
Options · object

Response

Successful Response

重置环境响应

observation
Observation · object
required
tools
Tools · object[]
required
done
boolean
default:false