> For the complete documentation index, see [llms.txt](https://docs.junglegym.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.junglegym.ai/junglegym/api-documentation/agentinstruct-api.md).

# AgentInstruct API

### AgentInstruct Description

AgentInstruct is a dataset that aims to improve LLMs’ generalized agent abilities. It was introduced with [AgentTuning](https://arxiv.org/abs/2310.12823): Enabling Generalized Agent Abilities for LLMs (A Zeng et al., 2023). The AgentInstruct dataset includes 1,866 trajectories from 6 agents' tasks. “Inst.” stands for instruction, the agent needs to interact with the environment to complete the task specified in the instruction, “Traj.” stands for interaction trajectory, “Filt. Traj.” stands for filtered trajectories. “Task Deri.” stands for Task Derivation.

To see the full dataset composition check its [JungleGym page](https://junglegym.ai/AgentInstruct%20Overview).

### AgentInstruct API Documentation

This API provides access to the full AgentInstruct dataset in its original format.

Version: 0.0.9 (Experimental) Status: Development Rate Limit: 500 requests per minute Root Endpoint: <https://api.junglegym.ai/>

#### Agent Instruction Endpoints

1. **Load Agent Instruction Dataset**
   * URL: `/load_agent_instruct`
   * Method: GET
   * Rate Limit: 500/minute.
   * Response: Returns the Agent Instruction dataset.
   * ```json
     jsonCopy code{
         "data": [...]
     }
     ```
