# `Jidoka.Import.AgentDocument`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/import/agent_document.ex#L1)

Portable JSON/YAML authoring document for a Jidoka agent.

The document intentionally stores only data. Runtime-only values such as Zoi
schemas and Jido action modules are referenced by name and resolved through
explicit registries in `Jidoka.Import`.

# `t`

```elixir
@type t() :: %Jidoka.Import.AgentDocument{
  agent: map(),
  controls: map(),
  metadata: map(),
  operations: [map()],
  runtime_defaults: map(),
  tools: map(),
  version: integer()
}
```

# `new`

```elixir
@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}
```

Builds a portable agent document from keyword or map attributes.

# `new!`

```elixir
@spec new!(keyword() | map()) :: t()
```

Builds a portable agent document and raises if the attributes are invalid.

# `schema`

```elixir
@spec schema() :: Zoi.schema()
```

Returns the Zoi schema for a portable agent document.

# `version`

```elixir
@spec version() :: pos_integer()
```

Returns the current portable document format version.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
