Skip to main content

Formation Resource Types

This page is auto-generated from the formations OpenAPI spec. Do not edit manually — run pnpm generate-formations-resource-docs to regenerate.

Each resource type that can be declared in a Formation template is listed below. Click a type to see its full properties reference.

Output

All resource types return the public ID of the created resource as their output. You can reference this ID in other resource properties with a ref expression:

resources:
MyMemory:
type: memory
properties:
name: My Memory

MyEntry:
type: memory_entry
properties:
memory_id:
ref: MyMemory # resolves to the public ID of MyMemory
content: Hello, world

Types

TypeDescription
ai_providerConfigures an LLM provider connection (API key, model, endpoint) that agents use to generate responses.
toolDefines a tool (HTTP endpoint, MCP server, or SOAT action) that agents can invoke during a generation.
agentCreates an AI agent backed by a provider. The agent handles requests, runs tools, and can be attached to actors.
actorCreates a stateful conversation actor that wraps an agent or chat session and optionally links to a memory store.
api_keyCreates an API key scoped to the formation's project and optionally restricted by a set of policies. The key is owned by the project owner.
chatCreates a chat connected to an AI provider within the formation's project.
conversationCreates a conversation within the formation's project.
documentStores a text document in a project, optionally indexing it for knowledge retrieval.
fileRegisters a file record within the formation's project.
memoryCreates a named memory store that actors can read from and write to across conversations.
memory_entryAdds a single text entry to a memory store.
policyCreates an access-control policy within the formation's project.
secretCreates an encrypted secret within the formation's project.
sessionCreates a session attached to an agent within the formation's project.
webhookRegisters an HTTPS endpoint to receive SOAT platform event notifications.