# garden.engram.agents.artifact

> Published by [hailey.at](https://lexicon.garden/identity/did:plc:oisofpd7lj26yvgiivf3lxsi)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.agents.artifact)
- [Documentation](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.agents.artifact/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.agents.artifact/examples)

## Definitions

### `garden.engram.agents.artifact`

**Type**: `record`

Work an agent produced: a draft, a patch, a summary. A revision is a new artifact with previous set.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `blob` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `derivedFrom` | `array` | No |  |
| `generator` | `ref` → `garden.engram.agents.defs#generator` | Yes |  |
| `previous` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `task` | `ref` → `com.atproto.repo.strongRef` | No |  |
| `text` | `string` | No | The artifact as text, or its start, for quoting. |
| `title` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Work an agent produced: a draft, a patch, a summary. A revision is a new artifact with previous set.",
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "derivedFrom": {
            "items": {
              "ref": "garden.engram.agents.defs#citation",
              "type": "ref"
            },
            "maxLength": 256,
            "type": "array"
          },
          "generator": {
            "ref": "garden.engram.agents.defs#generator",
            "type": "ref"
          },
          "previous": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "task": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "description": "The artifact as text, or its start, for quoting.",
            "maxGraphemes": 30000,
            "maxLength": 100000,
            "type": "string"
          },
          "title": {
            "maxGraphemes": 300,
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "title",
          "generator",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "garden.engram.agents.artifact",
  "lexicon": 1
}
```
