Dream を作成
POST/v1/dreams
Requires
anthropic-beta: dreaming-2026-04-21. How to send beta headers過去のセッションを使用してメモリストアの再編成版を生成する非同期ジョブを開始し、結果をポーリングするためのドリームを返します。
デフォルトでは、ドリームは結果を新しいメモリストアに書き込み、入力メモリストアは変更しません。レスポンスでは status が pending に設定され、outputs 配列は空です。status が completed、failed、または canceled になるまでドリームをポーリングしてください。
ドリームの作成について詳しくは、Dreams ガイドを参照してください。
Parameters
Returns
Dream を作成
using System;
using Anthropic.Models.Beta.Dreams;
DreamCreateParams parameters = new()
{
Inputs =
[
new BetaDreamMemoryStoreInput("x")
],
Model = "string",
};
var betaDream = await client.Beta.Dreams.Create(parameters);
Console.WriteLine(betaDream);Response 200
{
"id": "id",
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"ended_at": "2019-12-27T18:11:19.117Z",
"error": {
"message": "message",
"type": "type"
},
"inputs": [
{
"memory_store_id": "x",
"type": "memory_store"
}
],
"instructions": "instructions",
"model": {
"id": "x",
"speed": "standard"
},
"output_behavior": {
"type": "create_new"
},
"outputs": [
{
"memory_store_id": "memory_store_id",
"type": "memory_store"
}
],
"session_id": "session_id",
"status": "pending",
"type": "dream",
"usage": {
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"input_tokens": 0,
"output_tokens": 0
}
}Returns Examples
Response 200
{
"id": "id",
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"ended_at": "2019-12-27T18:11:19.117Z",
"error": {
"message": "message",
"type": "type"
},
"inputs": [
{
"memory_store_id": "x",
"type": "memory_store"
}
],
"instructions": "instructions",
"model": {
"id": "x",
"speed": "standard"
},
"output_behavior": {
"type": "create_new"
},
"outputs": [
{
"memory_store_id": "memory_store_id",
"type": "memory_store"
}
],
"session_id": "session_id",
"status": "pending",
"type": "dream",
"usage": {
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"input_tokens": 0,
"output_tokens": 0
}
}