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

console.log(response);
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

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
tool_name
string
required
tool_args
Tool Args · object
env_vars
Env Vars · object
stream
boolean
default:false
request_id
string | null
task_id
string | null
user_id
string | null

Response

Successful Response