---
title: "environment api"
description: "```graphql type LLM { model: String! withPrompt(prompt: String!): LLM! history: [LLMMessage!]! lastReply(): String!"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/environment-api
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:24:14.067Z
license: CC-BY-4.0
attribution: "environment api — Claudary (https://claudary.paisolsolutions.com/skills/environment-api)"
---

# environment api
```graphql type LLM { model: String! withPrompt(prompt: String!): LLM! history: [LLMMessage!]! lastReply(): String!

## Overview

```graphql
type LLM {
  model: String!
  withPrompt(prompt: String!): LLM!
  history: [LLMMessage!]!
  lastReply(): String!

  withEnvironment(Environment!): LLM!
  environment: Environment
}
```

```graphql
type Environment {
  with[Type]Binding(key: String!, value: [Type], overwrite: Bool, overwriteType: Bool): Environment!
  bindings: [Binding!]
  binding(key: String!): Binding
  encode: File!
}
```

```graphql
type Binding {
  key: String!
  as[Type]: [Type]!
}
```

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/environment-api) · https://claudary.paisolsolutions.com
