Agents

Agent management operations

Agent management operations

List all agents

Retrieve a list of all available agent configurations

GET
/workflows/{workflow_id}/agents

Path Parameters

workflow_idstring

Workflow ID

Response Body

curl -X GET "https://loading/api/v0/workflows/string/agents"
{
  "data": {
    "agents": [
      {
        "actions": [
          {
            "cwd": {
              "path": "string"
            },
            "id": "string",
            "input": {
              "property1": null,
              "property2": null
            },
            "json_mode": true,
            "output": {
              "property1": null,
              "property2": null
            },
            "prompt": "string",
            "with": {
              "property1": null,
              "property2": null
            }
          }
        ],
        "config": {
          "api_key": "string",
          "api_url": "string",
          "model": "string",
          "organization": "string",
          "params": {
            "max_length": 0,
            "max_tokens": 0,
            "min_length": 0,
            "repetition_penalty": 0,
            "seed": 0,
            "stop_words": [
              "string"
            ],
            "temperature": 0,
            "top_k": 0,
            "top_p": 0
          },
          "provider": "openai"
        },
        "cwd": {
          "path": "string"
        },
        "env": {
          "property1": "string",
          "property2": "string"
        },
        "id": "string",
        "instructions": "string",
        "json_mode": true,
        "max_iterations": 0,
        "mcps": [
          {
            "command": "string",
            "env": {
              "property1": "string",
              "property2": "string"
            },
            "id": "string",
            "max_sessions": 0,
            "proto": "string",
            "resource": "string",
            "start_timeout": -9223372036854776000,
            "transport": "stdio",
            "url": "string"
          }
        ],
        "memory": [
          {
            "id": "string",
            "key": "string",
            "mode": "read-write"
          }
        ],
        "resource": "string",
        "tools": [
          {
            "config": {
              "property1": null,
              "property2": null
            },
            "cwd": {
              "path": "string"
            },
            "description": "string",
            "env": {
              "property1": "string",
              "property2": "string"
            },
            "id": "string",
            "input": {
              "property1": null,
              "property2": null
            },
            "output": {
              "property1": null,
              "property2": null
            },
            "resource": "string",
            "timeout": "string",
            "with": {
              "property1": null,
              "property2": null
            }
          }
        ],
        "with": {
          "property1": null,
          "property2": null
        }
      }
    ]
  },
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}

Get agent by ID

Retrieve a specific agent configuration by its ID

GET
/workflows/{workflow_id}/agents/{agent_id}

Path Parameters

workflow_idstring

Workflow ID

agent_idstring

Agent ID

Response Body

curl -X GET "https://loading/api/v0/workflows/string/agents/string"
{
  "data": {
    "actions": [
      {
        "cwd": {
          "path": "string"
        },
        "id": "string",
        "input": {
          "property1": null,
          "property2": null
        },
        "json_mode": true,
        "output": {
          "property1": null,
          "property2": null
        },
        "prompt": "string",
        "with": {
          "property1": null,
          "property2": null
        }
      }
    ],
    "config": {
      "api_key": "string",
      "api_url": "string",
      "model": "string",
      "organization": "string",
      "params": {
        "max_length": 0,
        "max_tokens": 0,
        "min_length": 0,
        "repetition_penalty": 0,
        "seed": 0,
        "stop_words": [
          "string"
        ],
        "temperature": 0,
        "top_k": 0,
        "top_p": 0
      },
      "provider": "openai"
    },
    "cwd": {
      "path": "string"
    },
    "env": {
      "property1": "string",
      "property2": "string"
    },
    "id": "string",
    "instructions": "string",
    "json_mode": true,
    "max_iterations": 0,
    "mcps": [
      {
        "command": "string",
        "env": {
          "property1": "string",
          "property2": "string"
        },
        "id": "string",
        "max_sessions": 0,
        "proto": "string",
        "resource": "string",
        "start_timeout": -9223372036854776000,
        "transport": "stdio",
        "url": "string"
      }
    ],
    "memory": [
      {
        "id": "string",
        "key": "string",
        "mode": "read-write"
      }
    ],
    "resource": "string",
    "tools": [
      {
        "config": {
          "property1": null,
          "property2": null
        },
        "cwd": {
          "path": "string"
        },
        "description": "string",
        "env": {
          "property1": "string",
          "property2": "string"
        },
        "id": "string",
        "input": {
          "property1": null,
          "property2": null
        },
        "output": {
          "property1": null,
          "property2": null
        },
        "resource": "string",
        "timeout": "string",
        "with": {
          "property1": null,
          "property2": null
        }
      }
    ],
    "with": {
      "property1": null,
      "property2": null
    }
  },
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}
{
  "data": null,
  "error": {
    "code": "string",
    "details": "string",
    "message": "string"
  },
  "message": "string",
  "status": 0
}