published on Wednesday, Nov 18, 2026 by Pulumi
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)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:
- Agent
Definition stringId - 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 Dictionary<string, object> - JSON Schema the final agent response must satisfy.
- Stage
Pulumi.
Delivery. Stage - Stage that contains this agent member.
- Agent
Definition stringId - 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[string]interface{} - JSON Schema the final agent response must satisfy.
- Stage Stage
- Stage that contains this agent member.
- agent_
definition_ stringid - 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.
- agent
Definition StringId - 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<String,Object> - JSON Schema the final agent response must satisfy.
- stage Stage
- Stage that contains this agent member.
- agent
Definition stringId - 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 {[key: string]: any} - JSON Schema the final agent response must satisfy.
- stage Stage
- Stage that contains this agent member.
- agent_
definition_ strid - 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.
- agent
Definition StringId - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Agent resource produces the following output properties:
- Response object
- Response interface{}
- response any
- response Object
- response any
- response Any
- response Any
Package Details
- Repository
- delivery pulumi/pulumi-delivery
- License
- Apache-2.0
published on Wednesday, Nov 18, 2026 by Pulumi