본문으로 건너뛰기

AgentCreate

Payload used to create Agent. Required fields are name, description.

하나 이상(anyOf)
collection_idstring필수
하나 이상(anyOf)
input_mode
상수 값: chat
mode
상수 값: react
agent필수
nameName (string)필수

Possible values: non-empty and <= 50 characters, Value must match regular expression ^[a-z0-9]([-_a-z0-9]*[a-z0-9])?(?![\s\S])

alias object
하나 이상(anyOf)
string
descriptionDescription (string)필수

Agent description

input_modeInput Mode (string)

Input mode (chat or event)

Possible values: [chat, event]

기본값: chat
modeMode (string)

Execution mode (react or workflow)

Possible values: [react, workflow]

기본값: react
agent object

ReAct mode agent node configuration

하나 이상(anyOf)
instructionsInstructions (string)필수

Agent system instructions

prompts object[]

Reusable Prompt references. Rendered in list order and joined with '\n\n' as the system prefix; inline instructions is appended as a suffix. Empty = inline instructions only.

  • Array [
  • prompt_idPrompt Id (string)필수
    variables object

    {{var}} bindings for the referenced Prompt

    하나 이상(anyOf)
    object
  • ]
  • model_providerModel Provider (string)필수

    LLM provider name

    modelModel (string)필수

    LLM model name

    tools object[]

    Available tools

  • Array [
  • 하나 이상(anyOf)
    string
  • ]
  • actors object[]
  • Array [
  • 하나 이상(anyOf)
    string
  • ]
  • roles object[]
  • Array [
  • 하나 이상(anyOf)
    string
  • ]
  • outputs object
    하나 이상(anyOf)
    object
    max_iterationsMax Iterations (integer)

    Maximum iteration count

    기본값: 50
    max_input_tokens object

    Maximum input-token budget for the system prompt and conversation history before each model call. The effective limit cannot exceed the selected model's context_window; null uses the D.Hub default.

    하나 이상(anyOf)
    integer

    Possible values: >= 1

    compaction object

    Optional per-agent conversation compaction settings. Omit this field to use D.Hub defaults.

    하나 이상(anyOf)
    enabled object

    Whether conversation compaction is enabled for the agent.

    하나 이상(anyOf)
    boolean
    trigger_ratio object

    Fraction of the input-token budget that triggers compaction.

    하나 이상(anyOf)
    number

    Possible values: > 0 and < 1

    target_ratio object

    Fraction of the input-token budget targeted after compaction. It must be lower than trigger_ratio.

    하나 이상(anyOf)
    number

    Possible values: > 0 and < 1

    summary_max_tokens object

    Maximum number of tokens allowed in the generated compaction summary.

    하나 이상(anyOf)
    integer

    Possible values: >= 128 and <= 8192

    options object
    하나 이상(anyOf)
    object
    reasoning_effort object

    Default reasoning effort for this agent. A value supplied with an individual request takes precedence; null uses the selected model's default.

    하나 이상(anyOf)
    string

    Possible values: [none, minimal, low, medium, high, xhigh, max]

    nodes object[]

    Workflow mode node list

  • Array [
  • 다음 중 하나(oneOf)
    idId (string)필수

    Unique node ID

    typeType (string)필수

    Node type

    상수 값: start
    config object필수

    Type-specific node configuration

    variables object[]
  • Array [
  • nameName (string)필수
    typeType (string)필수

    Possible values: [string, number, boolean, object, array]

    requiredRequired (boolean)
    기본값: true
    defaultDefault
    descriptionDescription (string)
    기본값:
  • ]
  • metadata object
    property name*any
    기본값: {}
  • ]
  • edges object[]

    Workflow mode edge list

  • Array [
  • sourceSource (string)필수

    Source node ID

    targetTarget (string)필수

    Target node ID

    condition object

    Condition expression (unconditional if omitted)

    하나 이상(anyOf)
    string
  • ]
  • tablesstring[]

    Registered semantic table IDs

    기본값: []
    templatesstring[]

    Registered semantic template (group) IDs

    기본값: []
    ontologiesstring[]

    Registered semantic ontology IDs

    기본값: []
    conversations object[]

    Conversation variables

  • Array [
  • nameName (string)필수
    typeType (string)필수

    Possible values: [string, number, boolean, array, object]

    descriptionDescription (string)필수
    defaultDefault
  • ]
  • collection_id object

    Identifier of the containing collection.

    하나 이상(anyOf)
    string

    Possible values: non-empty

    folder_id object
    하나 이상(anyOf)
    string
    tags object
    하나 이상(anyOf)
  • Array [
  • string
  • ]
  • options object
    하나 이상(anyOf)
    object
    AgentCreate
    {
    "name": "string",
    "alias": "string",
    "description": "string",
    "input_mode": "chat",
    "mode": "react",
    "agent": {
    "instructions": "string",
    "prompts": [
    {
    "prompt_id": "string",
    "variables": {}
    }
    ],
    "model_provider": "string",
    "model": "string",
    "tools": [
    "string",
    {
    "id": "string",
    "name": "string"
    },
    {
    "name": "string",
    "description": "",
    "type": "python",
    "function": {
    "source": "string",
    "inputs": {},
    "outputs": {},
    "dependencies": [
    "string"
    ],
    "decorators": [
    {
    "decorator": "string",
    "name": "string",
    "arguments": {}
    }
    ]
    },
    "require_browser": false,
    "options": {}
    },
    {}
    ],
    "actors": [
    "string",
    {
    "id": "string",
    "name": "string"
    },
    {
    "name": "string",
    "description": "",
    "function": {
    "source": "string",
    "inputs": {},
    "outputs": {},
    "dependencies": [
    "string"
    ],
    "decorators": [
    {
    "decorator": "string",
    "name": "string",
    "arguments": {}
    }
    ]
    },
    "confirmation_policy": "confirm",
    "options": {}
    },
    {}
    ],
    "roles": [
    "string",
    {
    "id": "string",
    "name": "string"
    },
    {}
    ],
    "outputs": {},
    "max_iterations": 50,
    "max_input_tokens": 0,
    "compaction": {
    "enabled": true,
    "trigger_ratio": 0,
    "target_ratio": 0,
    "summary_max_tokens": 0
    },
    "options": {},
    "reasoning_effort": "none"
    },
    "nodes": [
    {
    "id": "string",
    "type": "start",
    "config": {
    "variables": [
    {
    "name": "string",
    "type": "string",
    "required": true,
    "description": ""
    }
    ]
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "end",
    "config": {
    "outputs": [
    {
    "name": "string",
    "type": "string",
    "value": "string"
    }
    ]
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "llm",
    "config": {
    "model_provider": "string",
    "model": "string",
    "prompt": "string",
    "system_prompt": "",
    "reasoning_effort": "none",
    "output": "llm_output",
    "response": {}
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "tool_call",
    "config": {
    "tool": {
    "name": "string",
    "description": "",
    "type": "python",
    "function": {
    "source": "string",
    "inputs": {},
    "outputs": {},
    "dependencies": [
    "string"
    ],
    "decorators": [
    {
    "decorator": "string",
    "name": "string",
    "arguments": {}
    }
    ]
    },
    "require_browser": false,
    "options": {}
    },
    "input_mappings": {},
    "outputs": {},
    "timeout": 30
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "actor_call",
    "config": {
    "actor": {
    "name": "string",
    "description": "",
    "function": {
    "source": "string",
    "inputs": {},
    "outputs": {},
    "dependencies": [
    "string"
    ],
    "decorators": [
    {
    "decorator": "string",
    "name": "string",
    "arguments": {}
    }
    ]
    },
    "confirmation_policy": "confirm",
    "options": {}
    },
    "input_mappings": {},
    "outputs": {},
    "timeout": 30
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "if_else",
    "config": {
    "condition": "string"
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "loop",
    "config": {
    "mode": "list",
    "source": "string",
    "iterator": "item",
    "count": 0,
    "counter": "index",
    "max_iterations": 100,
    "body_node_ids": [
    "string"
    ]
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "parallel",
    "config": {
    "branches": [
    {
    "id": "string",
    "node_ids": [
    "string"
    ]
    }
    ],
    "join_strategy": "all",
    "timeout": 300
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "human_input",
    "config": {
    "prompt": "string",
    "input_fields": [
    {
    "name": "string",
    "type": "string",
    "description": "",
    "required": true,
    "options": [
    "string"
    ]
    }
    ],
    "timeout": 86400,
    "assignees": [
    "string"
    ],
    "on_timeout": "error"
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "error_handler",
    "config": {
    "target_node_id": "string",
    "retry_count": 0,
    "retry_delay_seconds": 5,
    "retry_backoff": "fixed",
    "on_error": "fallback",
    "fallback_node_id": "string"
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "code",
    "config": {
    "language": "python",
    "source": "string",
    "input_mappings": {},
    "outputs": {},
    "timeout": 30,
    "dependencies": [
    "string"
    ]
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "template",
    "config": {
    "template": "string",
    "output": "text"
    },
    "metadata": {}
    },
    {
    "id": "string",
    "type": "variable",
    "config": {
    "operations": [
    {
    "action": "set",
    "variable": "string"
    }
    ]
    },
    "metadata": {}
    }
    ],
    "edges": [
    {
    "source": "string",
    "target": "string",
    "condition": "string"
    }
    ],
    "tables": [
    "string"
    ],
    "templates": [
    "string"
    ],
    "ontologies": [
    "string"
    ],
    "conversations": [
    {
    "name": "string",
    "type": "string",
    "description": "string"
    }
    ],
    "collection_id": "string",
    "folder_id": "string",
    "tags": [
    "string"
    ],
    "options": {}
    }