1. Registry
  2. Packages
  3. Pulumi Delivery
  4. API Docs
  5. Agent
Viewing docs for Pulumi Delivery v0.2.0
published on Wednesday, Nov 18, 2026 by Pulumi
Pulumi Delivery
Viewing docs for Pulumi Delivery v0.2.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Declares a structured Neo agent member of a Delivery stage. Delivery starts one invocation for each release after the stage and member dependencies are ready.

    Create Agent Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Agent(name: string, args: AgentArgs, opts?: ComponentResourceOptions);
    @overload
    def Agent(resource_name: str,
              args: AgentArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Agent(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              agent_definition_id: Optional[str] = None,
              prompt: Optional[str] = None,
              response_schema: Optional[Mapping[str, Any]] = None,
              stage: Optional[Stage] = None)
    func NewAgent(ctx *Context, name string, args AgentArgs, opts ...ResourceOption) (*Agent, error)
    public Agent(string name, AgentArgs args, ComponentResourceOptions? opts = null)
    public Agent(String name, AgentArgs args)
    public Agent(String name, AgentArgs args, ComponentResourceOptions options)
    
    type: delivery:Agent
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "delivery_agent" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AgentArgs
    The arguments to resource properties.
    opts ComponentResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AgentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AgentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentArgs
    The arguments to resource properties.
    opts ComponentResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentArgs
    The arguments to resource properties.
    options ComponentResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var agentResource = new Delivery.Agent("agentResource", new()
    {
        AgentDefinitionId = "string",
        Prompt = "string",
        ResponseSchema = 
        {
            { "string", "any" },
        },
        Stage = stage,
    });
    
    example, err := delivery.NewAgent(ctx, "agentResource", &delivery.AgentArgs{
    	AgentDefinitionId: pulumi.String("string"),
    	Prompt:            pulumi.String("string"),
    	ResponseSchema: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Stage: pulumi.Any(stage),
    })
    
    resource "delivery_agent" "agentResource" {
      lifecycle {
        create_before_destroy = true
      }
      agent_definition_id = "string"
      prompt              = "string"
      response_schema = {
        "string" = "any"
      }
      stage = stage
    }
    
    var agentResource = new Agent("agentResource", AgentArgs.builder()
        .agentDefinitionId("string")
        .prompt("string")
        .responseSchema(Map.of("string", "any"))
        .stage(stage)
        .build());
    
    agent_resource = delivery.Agent("agentResource",
        agent_definition_id="string",
        prompt="string",
        response_schema={
            "string": "any",
        },
        stage=stage)
    
    const agentResource = new delivery.Agent("agentResource", {
        agentDefinitionId: "string",
        prompt: "string",
        responseSchema: {
            string: "any",
        },
        stage: stage,
    });
    
    type: delivery:Agent
    properties:
        agentDefinitionId: string
        prompt: string
        responseSchema:
            string: any
        stage: ${stage}
    

    Agent Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Agent resource accepts the following input properties:

    AgentDefinitionId string
    Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
    Prompt string
    The single user message sent to the agent for each release.
    ResponseSchema Dictionary<string, object>
    JSON Schema the final agent response must satisfy.
    Stage Pulumi.Delivery.Stage
    Stage that contains this agent member.
    AgentDefinitionId string
    Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
    Prompt string
    The single user message sent to the agent for each release.
    ResponseSchema map[string]interface{}
    JSON Schema the final agent response must satisfy.
    Stage Stage
    Stage that contains this agent member.
    agent_definition_id string
    Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
    prompt string
    The single user message sent to the agent for each release.
    response_schema map(any)
    JSON Schema the final agent response must satisfy.
    stage delivery_stage
    Stage that contains this agent member.
    agentDefinitionId String
    Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
    prompt String
    The single user message sent to the agent for each release.
    responseSchema Map<String,Object>
    JSON Schema the final agent response must satisfy.
    stage Stage
    Stage that contains this agent member.
    agentDefinitionId string
    Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
    prompt string
    The single user message sent to the agent for each release.
    responseSchema {[key: string]: any}
    JSON Schema the final agent response must satisfy.
    stage Stage
    Stage that contains this agent member.
    agent_definition_id str
    Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
    prompt str
    The single user message sent to the agent for each release.
    response_schema Mapping[str, Any]
    JSON Schema the final agent response must satisfy.
    stage Stage
    Stage that contains this agent member.
    agentDefinitionId String
    Required Custom Agent definition ID. The invocation runs with that agent's saved role, integrations, and instructions.
    prompt String
    The single user message sent to the agent for each release.
    responseSchema Map<Any>
    JSON Schema the final agent response must satisfy.
    stage delivery:Stage
    Stage that contains this agent member.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Agent resource produces the following output properties:

    Response object
    Response interface{}
    response Object

    Package Details

    Repository
    delivery pulumi/pulumi-delivery
    License
    Apache-2.0
    Pulumi Delivery
    Viewing docs for Pulumi Delivery v0.2.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial