Skip to main content
POST
/
env
/
observation
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.observation({ session_id: 'session_id' });

console.log(response.state);
{
  "state": {},
  "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

Response

Successful Response

获取观察响应

state
State · object
required
tools
Tools · object[]
required
done
boolean
default:false