1. Registry
  2. Packages
  3. OpenAI
  4. API Docs
  5. Agent
Viewing docs for OpenAI v0.3.1
published on Monday, Nov 23, 2026 by Pulumi Labs
OpenAI
Viewing docs for OpenAI v0.3.1
published on Monday, Nov 23, 2026 by Pulumi Labs

    A reusable OpenAI agent: a model together with its instructions, tools and settings.

    This resource uses the beta Agents API.

    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?: CustomResourceOptions);
    @overload
    def Agent(resource_name: str,
              args: AgentArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Agent(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              model: Optional[str] = None,
              compaction: Optional[AgentCompactionArgs] = None,
              experimental: Optional[AgentExperimentalArgs] = None,
              instructions: Optional[str] = None,
              metadata: Optional[Mapping[str, str]] = None,
              multi_agent: Optional[AgentMultiAgentArgs] = None,
              name: Optional[str] = None,
              reasoning: Optional[AgentReasoningArgs] = None,
              service_tier: Optional[ServiceTier] = None,
              text: Optional[AgentTextArgs] = None,
              tools: Optional[Sequence[AgentToolArgs]] = None)
    func NewAgent(ctx *Context, name string, args AgentArgs, opts ...ResourceOption) (*Agent, error)
    public Agent(string name, AgentArgs args, CustomResourceOptions? opts = null)
    public Agent(String name, AgentArgs args)
    public Agent(String name, AgentArgs args, CustomResourceOptions options)
    
    type: openai:Agent
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "openai_agent" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AgentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    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 CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var agentResource = new Openai.Agent("agentResource", new()
    {
        Model = "string",
        Compaction = new Openai.Inputs.AgentCompactionArgs
        {
            Async = false,
        },
        Experimental = new Openai.Inputs.AgentExperimentalArgs
        {
            TimeAwareness = false,
        },
        Instructions = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        MultiAgent = new Openai.Inputs.AgentMultiAgentArgs
        {
            Enabled = false,
            MaxConcurrentSubagents = 0,
        },
        Name = "string",
        Reasoning = new Openai.Inputs.AgentReasoningArgs
        {
            Effort = Openai.ReasoningEffort.None,
            Summary = Openai.ReasoningSummary.Concise,
        },
        ServiceTier = Openai.ServiceTier.Auto,
        Text = new Openai.Inputs.AgentTextArgs
        {
            Format = new Openai.Inputs.AgentTextFormatArgs
            {
                Type = Openai.TextFormatType.Text,
                Schema = 
                {
                    { "string", "any" },
                },
            },
            Verbosity = Openai.TextVerbosity.Low,
        },
        Tools = new[]
        {
            new Openai.Inputs.AgentToolArgs
            {
                Type = Openai.ToolType.Function,
                Enabled = false,
                Mode = Openai.WebSearchMode.Disabled,
                ConnectionOrigin = Openai.ConnectionOrigin.Service,
                ContextSize = Openai.WebSearchContextSize.Low,
                CredentialId = "string",
                DeferLoading = false,
                Description = "string",
                AllowedDomains = new[]
                {
                    "string",
                },
                Async = false,
                IncludeScreenshots = false,
                Location = new Openai.Inputs.AgentWebSearchLocationArgs
                {
                    City = "string",
                    Country = "string",
                    Region = "string",
                    Timezone = "string",
                },
                Name = "string",
                Parameters = 
                {
                    { "string", "any" },
                },
                RequestMetadata = 
                {
                    { "string", "any" },
                },
                Required = false,
                ServerLabel = "string",
                Transport = new Openai.Inputs.AgentMcpTransportArgs
                {
                    Type = Openai.McpTransportType.Http,
                    Args = new[]
                    {
                        "string",
                    },
                    Command = "string",
                    Cwd = "string",
                    EnvVars = new[]
                    {
                        "string",
                    },
                    Headers = 
                    {
                        { "string", "string" },
                    },
                    ServerUrl = "string",
                },
                AllowedTools = new[]
                {
                    "string",
                },
            },
        },
    });
    
    example, err := openai.NewAgent(ctx, "agentResource", &openai.AgentArgs{
    	Model: pulumi.String("string"),
    	Compaction: &pulumiopenai.AgentCompactionArgs{
    		Async: pulumi.Bool(false),
    	},
    	Experimental: &pulumiopenai.AgentExperimentalArgs{
    		TimeAwareness: pulumi.Bool(false),
    	},
    	Instructions: pulumi.String("string"),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	MultiAgent: &pulumiopenai.AgentMultiAgentArgs{
    		Enabled:                pulumi.Bool(false),
    		MaxConcurrentSubagents: pulumi.Int(0),
    	},
    	Name: pulumi.String("string"),
    	Reasoning: &pulumiopenai.AgentReasoningArgs{
    		Effort:  openai.ReasoningEffortNone,
    		Summary: openai.ReasoningSummaryConcise,
    	},
    	ServiceTier: openai.ServiceTierAuto,
    	Text: &pulumiopenai.AgentTextArgs{
    		Format: &pulumiopenai.AgentTextFormatArgs{
    			Type: openai.TextFormatTypeText,
    			Schema: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    		},
    		Verbosity: openai.TextVerbosityLow,
    	},
    	Tools: pulumiopenai.AgentToolArray{
    		&pulumiopenai.AgentToolArgs{
    			Type:             openai.ToolTypeFunction,
    			Enabled:          pulumi.Bool(false),
    			Mode:             openai.WebSearchModeDisabled,
    			ConnectionOrigin: openai.ConnectionOriginService,
    			ContextSize:      openai.WebSearchContextSizeLow,
    			CredentialId:     pulumi.String("string"),
    			DeferLoading:     pulumi.Bool(false),
    			Description:      pulumi.String("string"),
    			AllowedDomains: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Async:              pulumi.Bool(false),
    			IncludeScreenshots: pulumi.Bool(false),
    			Location: &pulumiopenai.AgentWebSearchLocationArgs{
    				City:     pulumi.String("string"),
    				Country:  pulumi.String("string"),
    				Region:   pulumi.String("string"),
    				Timezone: pulumi.String("string"),
    			},
    			Name: pulumi.String("string"),
    			Parameters: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			RequestMetadata: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			Required:    pulumi.Bool(false),
    			ServerLabel: pulumi.String("string"),
    			Transport: &pulumiopenai.AgentMcpTransportArgs{
    				Type: openai.McpTransportTypeHttp,
    				Args: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Command: pulumi.String("string"),
    				Cwd:     pulumi.String("string"),
    				EnvVars: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Headers: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				ServerUrl: pulumi.String("string"),
    			},
    			AllowedTools: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    })
    
    resource "openai_agent" "agentResource" {
      lifecycle {
        create_before_destroy = true
      }
      model = "string"
      compaction = {
        async = false
      }
      experimental = {
        time_awareness = false
      }
      instructions = "string"
      metadata = {
        "string" = "string"
      }
      multi_agent = {
        enabled                  = false
        max_concurrent_subagents = 0
      }
      name = "string"
      reasoning = {
        effort  = "none"
        summary = "concise"
      }
      service_tier = "auto"
      text = {
        format = {
          type = "text"
          schema = {
            "string" = "any"
          }
        }
        verbosity = "low"
      }
      tools {
        type                = "function"
        enabled             = false
        mode                = "disabled"
        connection_origin   = "service"
        context_size        = "low"
        credential_id       = "string"
        defer_loading       = false
        description         = "string"
        allowed_domains     = ["string"]
        async               = false
        include_screenshots = false
        location = {
          city     = "string"
          country  = "string"
          region   = "string"
          timezone = "string"
        }
        name = "string"
        parameters = {
          "string" = "any"
        }
        request_metadata = {
          "string" = "any"
        }
        required     = false
        server_label = "string"
        transport = {
          type     = "http"
          args     = ["string"]
          command  = "string"
          cwd      = "string"
          env_vars = ["string"]
          headers = {
            "string" = "string"
          }
          server_url = "string"
        }
        allowed_tools = ["string"]
      }
    }
    
    var agentResource = new Agent("agentResource", AgentArgs.builder()
        .model("string")
        .compaction(AgentCompactionArgs.builder()
            .async(false)
            .build())
        .experimental(AgentExperimentalArgs.builder()
            .timeAwareness(false)
            .build())
        .instructions("string")
        .metadata(Map.of("string", "string"))
        .multiAgent(AgentMultiAgentArgs.builder()
            .enabled(false)
            .maxConcurrentSubagents(0)
            .build())
        .name("string")
        .reasoning(AgentReasoningArgs.builder()
            .effort(com.pulumi.openai.enums.ReasoningEffort.None)
            .summary(com.pulumi.openai.enums.ReasoningSummary.Concise)
            .build())
        .serviceTier(com.pulumi.openai.enums.ServiceTier.Auto)
        .text(AgentTextArgs.builder()
            .format(AgentTextFormatArgs.builder()
                .type(com.pulumi.openai.enums.TextFormatType.Text)
                .schema(Map.of("string", "any"))
                .build())
            .verbosity(com.pulumi.openai.enums.TextVerbosity.Low)
            .build())
        .tools(AgentToolArgs.builder()
            .type(com.pulumi.openai.enums.ToolType.Function)
            .enabled(false)
            .mode(com.pulumi.openai.enums.WebSearchMode.Disabled)
            .connectionOrigin(com.pulumi.openai.enums.ConnectionOrigin.Service)
            .contextSize(com.pulumi.openai.enums.WebSearchContextSize.Low)
            .credentialId("string")
            .deferLoading(false)
            .description("string")
            .allowedDomains("string")
            .async(false)
            .includeScreenshots(false)
            .location(AgentWebSearchLocationArgs.builder()
                .city("string")
                .country("string")
                .region("string")
                .timezone("string")
                .build())
            .name("string")
            .parameters(Map.of("string", "any"))
            .requestMetadata(Map.of("string", "any"))
            .required(false)
            .serverLabel("string")
            .transport(AgentMcpTransportArgs.builder()
                .type(com.pulumi.openai.enums.McpTransportType.Http)
                .args("string")
                .command("string")
                .cwd("string")
                .envVars("string")
                .headers(Map.of("string", "string"))
                .serverUrl("string")
                .build())
            .allowedTools("string")
            .build())
        .build());
    
    agent_resource = openai.Agent("agentResource",
        model="string",
        compaction={
            "async_": False,
        },
        experimental={
            "time_awareness": False,
        },
        instructions="string",
        metadata={
            "string": "string",
        },
        multi_agent={
            "enabled": False,
            "max_concurrent_subagents": 0,
        },
        name="string",
        reasoning={
            "effort": openai.ReasoningEffort.NONE,
            "summary": openai.ReasoningSummary.CONCISE,
        },
        service_tier=openai.ServiceTier.AUTO,
        text={
            "format": {
                "type": openai.TextFormatType.TEXT,
                "schema": {
                    "string": "any",
                },
            },
            "verbosity": openai.TextVerbosity.LOW,
        },
        tools=[{
            "type": openai.ToolType.FUNCTION,
            "enabled": False,
            "mode": openai.WebSearchMode.DISABLED,
            "connection_origin": openai.ConnectionOrigin.SERVICE,
            "context_size": openai.WebSearchContextSize.LOW,
            "credential_id": "string",
            "defer_loading": False,
            "description": "string",
            "allowed_domains": ["string"],
            "async_": False,
            "include_screenshots": False,
            "location": {
                "city": "string",
                "country": "string",
                "region": "string",
                "timezone": "string",
            },
            "name": "string",
            "parameters": {
                "string": "any",
            },
            "request_metadata": {
                "string": "any",
            },
            "required": False,
            "server_label": "string",
            "transport": {
                "type": openai.McpTransportType.HTTP,
                "args": ["string"],
                "command": "string",
                "cwd": "string",
                "env_vars": ["string"],
                "headers": {
                    "string": "string",
                },
                "server_url": "string",
            },
            "allowed_tools": ["string"],
        }])
    
    const agentResource = new openai.Agent("agentResource", {
        model: "string",
        compaction: {
            async: false,
        },
        experimental: {
            timeAwareness: false,
        },
        instructions: "string",
        metadata: {
            string: "string",
        },
        multiAgent: {
            enabled: false,
            maxConcurrentSubagents: 0,
        },
        name: "string",
        reasoning: {
            effort: openai.ReasoningEffort.None,
            summary: openai.ReasoningSummary.Concise,
        },
        serviceTier: openai.ServiceTier.Auto,
        text: {
            format: {
                type: openai.TextFormatType.Text,
                schema: {
                    string: "any",
                },
            },
            verbosity: openai.TextVerbosity.Low,
        },
        tools: [{
            type: openai.ToolType.Function,
            enabled: false,
            mode: openai.WebSearchMode.Disabled,
            connectionOrigin: openai.ConnectionOrigin.Service,
            contextSize: openai.WebSearchContextSize.Low,
            credentialId: "string",
            deferLoading: false,
            description: "string",
            allowedDomains: ["string"],
            async: false,
            includeScreenshots: false,
            location: {
                city: "string",
                country: "string",
                region: "string",
                timezone: "string",
            },
            name: "string",
            parameters: {
                string: "any",
            },
            requestMetadata: {
                string: "any",
            },
            required: false,
            serverLabel: "string",
            transport: {
                type: openai.McpTransportType.Http,
                args: ["string"],
                command: "string",
                cwd: "string",
                envVars: ["string"],
                headers: {
                    string: "string",
                },
                serverUrl: "string",
            },
            allowedTools: ["string"],
        }],
    });
    
    type: openai:Agent
    properties:
        compaction:
            async: false
        experimental:
            timeAwareness: false
        instructions: string
        metadata:
            string: string
        model: string
        multiAgent:
            enabled: false
            maxConcurrentSubagents: 0
        name: string
        reasoning:
            effort: none
            summary: concise
        serviceTier: auto
        text:
            format:
                schema:
                    string: any
                type: text
            verbosity: low
        tools:
            - allowedDomains:
                - string
              allowedTools:
                - string
              async: false
              connectionOrigin: service
              contextSize: low
              credentialId: string
              deferLoading: false
              description: string
              enabled: false
              includeScreenshots: false
              location:
                city: string
                country: string
                region: string
                timezone: string
              mode: disabled
              name: string
              parameters:
                string: any
              requestMetadata:
                string: any
              required: false
              serverLabel: string
              transport:
                args:
                    - string
                command: string
                cwd: string
                envVars:
                    - string
                headers:
                    string: string
                serverUrl: string
                type: http
              type: function
    

    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:

    Model string
    The model the agent uses for inference.
    Compaction Pulumi.Labs.Openai.Inputs.AgentCompaction
    Controls how the agent's context is compacted.
    Experimental Pulumi.Labs.Openai.Inputs.AgentExperimental
    Experimental settings, which may change without notice.
    Instructions string
    Custom instructions, appended to the default base instructions.
    Metadata Dictionary<string, string>
    Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters.
    MultiAgent Pulumi.Labs.Openai.Inputs.AgentMultiAgent
    Controls whether the agent can delegate work to subagents.
    Name string
    A human-readable name for the agent, up to 128 characters.
    Reasoning Pulumi.Labs.Openai.Inputs.AgentReasoning
    Reasoning configuration. When unset, the model's defaults apply.
    ServiceTier Pulumi.Labs.Openai.ServiceTier
    The service tier used to run the agent. Defaults to auto.
    Text Pulumi.Labs.Openai.Inputs.AgentText
    Configuration of the agent's text output.
    Tools List<Pulumi.Labs.Openai.Inputs.AgentTool>
    The tools available to the agent, up to 2000.
    Model string
    The model the agent uses for inference.
    Compaction AgentCompactionArgs
    Controls how the agent's context is compacted.
    Experimental AgentExperimentalArgs
    Experimental settings, which may change without notice.
    Instructions string
    Custom instructions, appended to the default base instructions.
    Metadata map[string]string
    Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters.
    MultiAgent AgentMultiAgentArgs
    Controls whether the agent can delegate work to subagents.
    Name string
    A human-readable name for the agent, up to 128 characters.
    Reasoning AgentReasoningArgs
    Reasoning configuration. When unset, the model's defaults apply.
    ServiceTier ServiceTier
    The service tier used to run the agent. Defaults to auto.
    Text AgentTextArgs
    Configuration of the agent's text output.
    Tools []AgentToolArgs
    The tools available to the agent, up to 2000.
    model string
    The model the agent uses for inference.
    compaction object
    Controls how the agent's context is compacted.
    experimental object
    Experimental settings, which may change without notice.
    instructions string
    Custom instructions, appended to the default base instructions.
    metadata map(string)
    Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters.
    multi_agent object
    Controls whether the agent can delegate work to subagents.
    name string
    A human-readable name for the agent, up to 128 characters.
    reasoning object
    Reasoning configuration. When unset, the model's defaults apply.
    service_tier "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast"
    The service tier used to run the agent. Defaults to auto.
    text object
    Configuration of the agent's text output.
    tools list(object)
    The tools available to the agent, up to 2000.
    model String
    The model the agent uses for inference.
    compaction AgentCompaction
    Controls how the agent's context is compacted.
    experimental AgentExperimental
    Experimental settings, which may change without notice.
    instructions String
    Custom instructions, appended to the default base instructions.
    metadata Map<String,String>
    Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters.
    multiAgent AgentMultiAgent
    Controls whether the agent can delegate work to subagents.
    name String
    A human-readable name for the agent, up to 128 characters.
    reasoning AgentReasoning
    Reasoning configuration. When unset, the model's defaults apply.
    serviceTier ServiceTier
    The service tier used to run the agent. Defaults to auto.
    text AgentText
    Configuration of the agent's text output.
    tools List<AgentTool>
    The tools available to the agent, up to 2000.
    model string
    The model the agent uses for inference.
    compaction AgentCompaction
    Controls how the agent's context is compacted.
    experimental AgentExperimental
    Experimental settings, which may change without notice.
    instructions string
    Custom instructions, appended to the default base instructions.
    metadata {[key: string]: string}
    Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters.
    multiAgent AgentMultiAgent
    Controls whether the agent can delegate work to subagents.
    name string
    A human-readable name for the agent, up to 128 characters.
    reasoning AgentReasoning
    Reasoning configuration. When unset, the model's defaults apply.
    serviceTier ServiceTier
    The service tier used to run the agent. Defaults to auto.
    text AgentText
    Configuration of the agent's text output.
    tools AgentTool[]
    The tools available to the agent, up to 2000.
    model str
    The model the agent uses for inference.
    compaction AgentCompactionArgs
    Controls how the agent's context is compacted.
    experimental AgentExperimentalArgs
    Experimental settings, which may change without notice.
    instructions str
    Custom instructions, appended to the default base instructions.
    metadata Mapping[str, str]
    Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters.
    multi_agent AgentMultiAgentArgs
    Controls whether the agent can delegate work to subagents.
    name str
    A human-readable name for the agent, up to 128 characters.
    reasoning AgentReasoningArgs
    Reasoning configuration. When unset, the model's defaults apply.
    service_tier ServiceTier
    The service tier used to run the agent. Defaults to auto.
    text AgentTextArgs
    Configuration of the agent's text output.
    tools Sequence[AgentToolArgs]
    The tools available to the agent, up to 2000.
    model String
    The model the agent uses for inference.
    compaction Property Map
    Controls how the agent's context is compacted.
    experimental Property Map
    Experimental settings, which may change without notice.
    instructions String
    Custom instructions, appended to the default base instructions.
    metadata Map<String>
    Up to 16 custom key-value pairs. Keys can be up to 64 characters and values up to 512 characters.
    multiAgent Property Map
    Controls whether the agent can delegate work to subagents.
    name String
    A human-readable name for the agent, up to 128 characters.
    reasoning Property Map
    Reasoning configuration. When unset, the model's defaults apply.
    serviceTier "auto" | "default" | "flex" | "priority" | "fast" | "ultrafast"
    The service tier used to run the agent. Defaults to auto.
    text Property Map
    Configuration of the agent's text output.
    tools List<Property Map>
    The tools available to the agent, up to 2000.

    Outputs

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

    CreatedAt int
    When the agent was created, as a Unix timestamp in seconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    When the agent was last updated, as a Unix timestamp in seconds.
    CreatedAt int
    When the agent was created, as a Unix timestamp in seconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    When the agent was last updated, as a Unix timestamp in seconds.
    created_at number
    When the agent was created, as a Unix timestamp in seconds.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at number
    When the agent was last updated, as a Unix timestamp in seconds.
    createdAt Integer
    When the agent was created, as a Unix timestamp in seconds.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Integer
    When the agent was last updated, as a Unix timestamp in seconds.
    createdAt number
    When the agent was created, as a Unix timestamp in seconds.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt number
    When the agent was last updated, as a Unix timestamp in seconds.
    created_at int
    When the agent was created, as a Unix timestamp in seconds.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at int
    When the agent was last updated, as a Unix timestamp in seconds.
    createdAt Number
    When the agent was created, as a Unix timestamp in seconds.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Number
    When the agent was last updated, as a Unix timestamp in seconds.

    Look up Existing Agent Resource

    Get an existing Agent resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Agent
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Agent
    func GetAgent(ctx *Context, name string, id IDInput, state *AgentState, opts ...ResourceOption) (*Agent, error)
    public static Agent Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Agent get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingAgent:    type: openai:Agent    get:      id: ${id}
    import {
      to = openai_agent.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AgentState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    AgentCompaction, AgentCompactionArgs

    Async bool
    Whether compaction runs in the background. Defaults to true; set to false for blocking compaction.
    Async bool
    Whether compaction runs in the background. Defaults to true; set to false for blocking compaction.
    async bool
    Whether compaction runs in the background. Defaults to true; set to false for blocking compaction.
    async Boolean
    Whether compaction runs in the background. Defaults to true; set to false for blocking compaction.
    async boolean
    Whether compaction runs in the background. Defaults to true; set to false for blocking compaction.
    async_ bool
    Whether compaction runs in the background. Defaults to true; set to false for blocking compaction.
    async Boolean
    Whether compaction runs in the background. Defaults to true; set to false for blocking compaction.

    AgentExperimental, AgentExperimentalArgs

    TimeAwareness bool
    Whether the model receives periodic reminders of the current time. Defaults to false.
    TimeAwareness bool
    Whether the model receives periodic reminders of the current time. Defaults to false.
    time_awareness bool
    Whether the model receives periodic reminders of the current time. Defaults to false.
    timeAwareness Boolean
    Whether the model receives periodic reminders of the current time. Defaults to false.
    timeAwareness boolean
    Whether the model receives periodic reminders of the current time. Defaults to false.
    time_awareness bool
    Whether the model receives periodic reminders of the current time. Defaults to false.
    timeAwareness Boolean
    Whether the model receives periodic reminders of the current time. Defaults to false.

    AgentMcpTransport, AgentMcpTransportArgs

    Type Pulumi.Labs.Openai.McpTransportType
    The transport type: http or stdio.
    Args List<string>
    stdio transport: arguments passed to the command.
    Command string
    stdio transport: the command that starts the MCP server. Required.
    Cwd string
    stdio transport: the working directory the command runs in. Required.
    EnvVars List<string>
    stdio transport: names of environment variables the command inherits from the execution environment.
    Headers Dictionary<string, string>
    http transport: non-secret headers sent with each request to the server.
    ServerUrl string
    http transport: the URL of the MCP server. Required.
    Type McpTransportType
    The transport type: http or stdio.
    Args []string
    stdio transport: arguments passed to the command.
    Command string
    stdio transport: the command that starts the MCP server. Required.
    Cwd string
    stdio transport: the working directory the command runs in. Required.
    EnvVars []string
    stdio transport: names of environment variables the command inherits from the execution environment.
    Headers map[string]string
    http transport: non-secret headers sent with each request to the server.
    ServerUrl string
    http transport: the URL of the MCP server. Required.
    type "http" | "stdio"
    The transport type: http or stdio.
    args list(string)
    stdio transport: arguments passed to the command.
    command string
    stdio transport: the command that starts the MCP server. Required.
    cwd string
    stdio transport: the working directory the command runs in. Required.
    env_vars list(string)
    stdio transport: names of environment variables the command inherits from the execution environment.
    headers map(string)
    http transport: non-secret headers sent with each request to the server.
    server_url string
    http transport: the URL of the MCP server. Required.
    type McpTransportType
    The transport type: http or stdio.
    args List<String>
    stdio transport: arguments passed to the command.
    command String
    stdio transport: the command that starts the MCP server. Required.
    cwd String
    stdio transport: the working directory the command runs in. Required.
    envVars List<String>
    stdio transport: names of environment variables the command inherits from the execution environment.
    headers Map<String,String>
    http transport: non-secret headers sent with each request to the server.
    serverUrl String
    http transport: the URL of the MCP server. Required.
    type McpTransportType
    The transport type: http or stdio.
    args string[]
    stdio transport: arguments passed to the command.
    command string
    stdio transport: the command that starts the MCP server. Required.
    cwd string
    stdio transport: the working directory the command runs in. Required.
    envVars string[]
    stdio transport: names of environment variables the command inherits from the execution environment.
    headers {[key: string]: string}
    http transport: non-secret headers sent with each request to the server.
    serverUrl string
    http transport: the URL of the MCP server. Required.
    type McpTransportType
    The transport type: http or stdio.
    args Sequence[str]
    stdio transport: arguments passed to the command.
    command str
    stdio transport: the command that starts the MCP server. Required.
    cwd str
    stdio transport: the working directory the command runs in. Required.
    env_vars Sequence[str]
    stdio transport: names of environment variables the command inherits from the execution environment.
    headers Mapping[str, str]
    http transport: non-secret headers sent with each request to the server.
    server_url str
    http transport: the URL of the MCP server. Required.
    type "http" | "stdio"
    The transport type: http or stdio.
    args List<String>
    stdio transport: arguments passed to the command.
    command String
    stdio transport: the command that starts the MCP server. Required.
    cwd String
    stdio transport: the working directory the command runs in. Required.
    envVars List<String>
    stdio transport: names of environment variables the command inherits from the execution environment.
    headers Map<String>
    http transport: non-secret headers sent with each request to the server.
    serverUrl String
    http transport: the URL of the MCP server. Required.

    AgentMultiAgent, AgentMultiAgentArgs

    Enabled bool
    Whether subagent tools are enabled.
    MaxConcurrentSubagents int
    The maximum number of subagents that run at once. Defaults to 6.
    Enabled bool
    Whether subagent tools are enabled.
    MaxConcurrentSubagents int
    The maximum number of subagents that run at once. Defaults to 6.
    enabled bool
    Whether subagent tools are enabled.
    max_concurrent_subagents number
    The maximum number of subagents that run at once. Defaults to 6.
    enabled Boolean
    Whether subagent tools are enabled.
    maxConcurrentSubagents Integer
    The maximum number of subagents that run at once. Defaults to 6.
    enabled boolean
    Whether subagent tools are enabled.
    maxConcurrentSubagents number
    The maximum number of subagents that run at once. Defaults to 6.
    enabled bool
    Whether subagent tools are enabled.
    max_concurrent_subagents int
    The maximum number of subagents that run at once. Defaults to 6.
    enabled Boolean
    Whether subagent tools are enabled.
    maxConcurrentSubagents Number
    The maximum number of subagents that run at once. Defaults to 6.

    AgentReasoning, AgentReasoningArgs

    Effort Pulumi.Labs.Openai.ReasoningEffort
    How much reasoning effort the model spends. When unset, the model chooses its default.
    Summary Pulumi.Labs.Openai.ReasoningSummary
    The kind of reasoning summary to produce. When unset, summaries are disabled.
    Effort ReasoningEffort
    How much reasoning effort the model spends. When unset, the model chooses its default.
    Summary ReasoningSummary
    The kind of reasoning summary to produce. When unset, summaries are disabled.
    effort "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
    How much reasoning effort the model spends. When unset, the model chooses its default.
    summary "concise" | "detailed" | "auto"
    The kind of reasoning summary to produce. When unset, summaries are disabled.
    effort ReasoningEffort
    How much reasoning effort the model spends. When unset, the model chooses its default.
    summary ReasoningSummary
    The kind of reasoning summary to produce. When unset, summaries are disabled.
    effort ReasoningEffort
    How much reasoning effort the model spends. When unset, the model chooses its default.
    summary ReasoningSummary
    The kind of reasoning summary to produce. When unset, summaries are disabled.
    effort ReasoningEffort
    How much reasoning effort the model spends. When unset, the model chooses its default.
    summary ReasoningSummary
    The kind of reasoning summary to produce. When unset, summaries are disabled.
    effort "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
    How much reasoning effort the model spends. When unset, the model chooses its default.
    summary "concise" | "detailed" | "auto"
    The kind of reasoning summary to produce. When unset, summaries are disabled.

    AgentText, AgentTextArgs

    Format Pulumi.Labs.Openai.Inputs.AgentTextFormat
    The output format. Defaults to plain text.
    Verbosity Pulumi.Labs.Openai.TextVerbosity
    How verbose the agent's responses are. Defaults to medium.
    Format AgentTextFormat
    The output format. Defaults to plain text.
    Verbosity TextVerbosity
    How verbose the agent's responses are. Defaults to medium.
    format object
    The output format. Defaults to plain text.
    verbosity "low" | "medium" | "high"
    How verbose the agent's responses are. Defaults to medium.
    format AgentTextFormat
    The output format. Defaults to plain text.
    verbosity TextVerbosity
    How verbose the agent's responses are. Defaults to medium.
    format AgentTextFormat
    The output format. Defaults to plain text.
    verbosity TextVerbosity
    How verbose the agent's responses are. Defaults to medium.
    format AgentTextFormat
    The output format. Defaults to plain text.
    verbosity TextVerbosity
    How verbose the agent's responses are. Defaults to medium.
    format Property Map
    The output format. Defaults to plain text.
    verbosity "low" | "medium" | "high"
    How verbose the agent's responses are. Defaults to medium.

    AgentTextFormat, AgentTextFormatArgs

    Type Pulumi.Labs.Openai.TextFormatType
    The format type: text for ordinary text, or json_schema to constrain output to a JSON Schema.
    Schema Dictionary<string, object>
    The JSON Schema the output must conform to. Required when type is json_schema.
    Type TextFormatType
    The format type: text for ordinary text, or json_schema to constrain output to a JSON Schema.
    Schema map[string]interface{}
    The JSON Schema the output must conform to. Required when type is json_schema.
    type "text" | "json_schema"
    The format type: text for ordinary text, or json_schema to constrain output to a JSON Schema.
    schema map(any)
    The JSON Schema the output must conform to. Required when type is json_schema.
    type TextFormatType
    The format type: text for ordinary text, or json_schema to constrain output to a JSON Schema.
    schema Map<String,Object>
    The JSON Schema the output must conform to. Required when type is json_schema.
    type TextFormatType
    The format type: text for ordinary text, or json_schema to constrain output to a JSON Schema.
    schema {[key: string]: any}
    The JSON Schema the output must conform to. Required when type is json_schema.
    type TextFormatType
    The format type: text for ordinary text, or json_schema to constrain output to a JSON Schema.
    schema Mapping[str, Any]
    The JSON Schema the output must conform to. Required when type is json_schema.
    type "text" | "json_schema"
    The format type: text for ordinary text, or json_schema to constrain output to a JSON Schema.
    schema Map<Any>
    The JSON Schema the output must conform to. Required when type is json_schema.

    AgentTool, AgentToolArgs

    A tool available to an agent. type selects the kind of tool; each other property applies only to the tool types named in its description.

    Type Pulumi.Labs.Openai.ToolType
    The kind of tool.
    AllowedDomains List<string>
    web_search tools: the domains searches are restricted to.
    AllowedTools List<string>
    mcp tools: the names of the server's tools the agent may use. When unset, all tools are allowed.
    Async bool
    function tools: whether the function is called asynchronously.
    ConnectionOrigin Pulumi.Labs.Openai.ConnectionOrigin
    mcp tools: where the connection to the server is made from.
    ContextSize Pulumi.Labs.Openai.WebSearchContextSize
    web_search tools: how much search context is given to the model.
    CredentialId string
    mcp tools: the ID of a stored credential used to authenticate to the server.
    DeferLoading bool
    function tools: whether the function is only loaded once discovered through a tool_search tool.
    Description string
    function tools: a description of what the function does.
    Enabled bool
    programmatic_tool_calling tools: whether programmatic tool calling is enabled. Defaults to true.
    IncludeScreenshots bool
    computer_use tools: whether screenshots are included.
    Location Pulumi.Labs.Openai.Inputs.AgentWebSearchLocation
    web_search tools: an approximate user location used to localize results.
    Mode Pulumi.Labs.Openai.WebSearchMode
    web_search tools: whether results are fetched live, served from cache, or disabled.
    Name string
    function tools: the name of the function. Required.
    Parameters Dictionary<string, object>
    function tools: a JSON Schema describing the function's parameters.
    RequestMetadata Dictionary<string, object>
    mcp tools: metadata sent to the server with each request.
    Required bool
    mcp tools: whether the agent requires the server to be available.
    ServerLabel string
    mcp tools: a label identifying the MCP server. Required.
    Transport Pulumi.Labs.Openai.Inputs.AgentMcpTransport
    mcp tools: how to connect to the MCP server. Required.
    Type ToolType
    The kind of tool.
    AllowedDomains []string
    web_search tools: the domains searches are restricted to.
    AllowedTools []string
    mcp tools: the names of the server's tools the agent may use. When unset, all tools are allowed.
    Async bool
    function tools: whether the function is called asynchronously.
    ConnectionOrigin ConnectionOrigin
    mcp tools: where the connection to the server is made from.
    ContextSize WebSearchContextSize
    web_search tools: how much search context is given to the model.
    CredentialId string
    mcp tools: the ID of a stored credential used to authenticate to the server.
    DeferLoading bool
    function tools: whether the function is only loaded once discovered through a tool_search tool.
    Description string
    function tools: a description of what the function does.
    Enabled bool
    programmatic_tool_calling tools: whether programmatic tool calling is enabled. Defaults to true.
    IncludeScreenshots bool
    computer_use tools: whether screenshots are included.
    Location AgentWebSearchLocation
    web_search tools: an approximate user location used to localize results.
    Mode WebSearchMode
    web_search tools: whether results are fetched live, served from cache, or disabled.
    Name string
    function tools: the name of the function. Required.
    Parameters map[string]interface{}
    function tools: a JSON Schema describing the function's parameters.
    RequestMetadata map[string]interface{}
    mcp tools: metadata sent to the server with each request.
    Required bool
    mcp tools: whether the agent requires the server to be available.
    ServerLabel string
    mcp tools: a label identifying the MCP server. Required.
    Transport AgentMcpTransport
    mcp tools: how to connect to the MCP server. Required.
    type "function" | "tool_search" | "programmatic_tool_calling" | "mcp" | "web_search" | "computer_use" | "automations"
    The kind of tool.
    allowed_domains list(string)
    web_search tools: the domains searches are restricted to.
    allowed_tools list(string)
    mcp tools: the names of the server's tools the agent may use. When unset, all tools are allowed.
    async bool
    function tools: whether the function is called asynchronously.
    connection_origin "service" | "environment"
    mcp tools: where the connection to the server is made from.
    context_size "low" | "medium" | "high"
    web_search tools: how much search context is given to the model.
    credential_id string
    mcp tools: the ID of a stored credential used to authenticate to the server.
    defer_loading bool
    function tools: whether the function is only loaded once discovered through a tool_search tool.
    description string
    function tools: a description of what the function does.
    enabled bool
    programmatic_tool_calling tools: whether programmatic tool calling is enabled. Defaults to true.
    include_screenshots bool
    computer_use tools: whether screenshots are included.
    location object
    web_search tools: an approximate user location used to localize results.
    mode "disabled" | "cached" | "live"
    web_search tools: whether results are fetched live, served from cache, or disabled.
    name string
    function tools: the name of the function. Required.
    parameters map(any)
    function tools: a JSON Schema describing the function's parameters.
    request_metadata map(any)
    mcp tools: metadata sent to the server with each request.
    required bool
    mcp tools: whether the agent requires the server to be available.
    server_label string
    mcp tools: a label identifying the MCP server. Required.
    transport object
    mcp tools: how to connect to the MCP server. Required.
    type ToolType
    The kind of tool.
    allowedDomains List<String>
    web_search tools: the domains searches are restricted to.
    allowedTools List<String>
    mcp tools: the names of the server's tools the agent may use. When unset, all tools are allowed.
    async Boolean
    function tools: whether the function is called asynchronously.
    connectionOrigin ConnectionOrigin
    mcp tools: where the connection to the server is made from.
    contextSize WebSearchContextSize
    web_search tools: how much search context is given to the model.
    credentialId String
    mcp tools: the ID of a stored credential used to authenticate to the server.
    deferLoading Boolean
    function tools: whether the function is only loaded once discovered through a tool_search tool.
    description String
    function tools: a description of what the function does.
    enabled Boolean
    programmatic_tool_calling tools: whether programmatic tool calling is enabled. Defaults to true.
    includeScreenshots Boolean
    computer_use tools: whether screenshots are included.
    location AgentWebSearchLocation
    web_search tools: an approximate user location used to localize results.
    mode WebSearchMode
    web_search tools: whether results are fetched live, served from cache, or disabled.
    name String
    function tools: the name of the function. Required.
    parameters Map<String,Object>
    function tools: a JSON Schema describing the function's parameters.
    requestMetadata Map<String,Object>
    mcp tools: metadata sent to the server with each request.
    required Boolean
    mcp tools: whether the agent requires the server to be available.
    serverLabel String
    mcp tools: a label identifying the MCP server. Required.
    transport AgentMcpTransport
    mcp tools: how to connect to the MCP server. Required.
    type ToolType
    The kind of tool.
    allowedDomains string[]
    web_search tools: the domains searches are restricted to.
    allowedTools string[]
    mcp tools: the names of the server's tools the agent may use. When unset, all tools are allowed.
    async boolean
    function tools: whether the function is called asynchronously.
    connectionOrigin ConnectionOrigin
    mcp tools: where the connection to the server is made from.
    contextSize WebSearchContextSize
    web_search tools: how much search context is given to the model.
    credentialId string
    mcp tools: the ID of a stored credential used to authenticate to the server.
    deferLoading boolean
    function tools: whether the function is only loaded once discovered through a tool_search tool.
    description string
    function tools: a description of what the function does.
    enabled boolean
    programmatic_tool_calling tools: whether programmatic tool calling is enabled. Defaults to true.
    includeScreenshots boolean
    computer_use tools: whether screenshots are included.
    location AgentWebSearchLocation
    web_search tools: an approximate user location used to localize results.
    mode WebSearchMode
    web_search tools: whether results are fetched live, served from cache, or disabled.
    name string
    function tools: the name of the function. Required.
    parameters {[key: string]: any}
    function tools: a JSON Schema describing the function's parameters.
    requestMetadata {[key: string]: any}
    mcp tools: metadata sent to the server with each request.
    required boolean
    mcp tools: whether the agent requires the server to be available.
    serverLabel string
    mcp tools: a label identifying the MCP server. Required.
    transport AgentMcpTransport
    mcp tools: how to connect to the MCP server. Required.
    type ToolType
    The kind of tool.
    allowed_domains Sequence[str]
    web_search tools: the domains searches are restricted to.
    allowed_tools Sequence[str]
    mcp tools: the names of the server's tools the agent may use. When unset, all tools are allowed.
    async_ bool
    function tools: whether the function is called asynchronously.
    connection_origin ConnectionOrigin
    mcp tools: where the connection to the server is made from.
    context_size WebSearchContextSize
    web_search tools: how much search context is given to the model.
    credential_id str
    mcp tools: the ID of a stored credential used to authenticate to the server.
    defer_loading bool
    function tools: whether the function is only loaded once discovered through a tool_search tool.
    description str
    function tools: a description of what the function does.
    enabled bool
    programmatic_tool_calling tools: whether programmatic tool calling is enabled. Defaults to true.
    include_screenshots bool
    computer_use tools: whether screenshots are included.
    location AgentWebSearchLocation
    web_search tools: an approximate user location used to localize results.
    mode WebSearchMode
    web_search tools: whether results are fetched live, served from cache, or disabled.
    name str
    function tools: the name of the function. Required.
    parameters Mapping[str, Any]
    function tools: a JSON Schema describing the function's parameters.
    request_metadata Mapping[str, Any]
    mcp tools: metadata sent to the server with each request.
    required bool
    mcp tools: whether the agent requires the server to be available.
    server_label str
    mcp tools: a label identifying the MCP server. Required.
    transport AgentMcpTransport
    mcp tools: how to connect to the MCP server. Required.
    type "function" | "tool_search" | "programmatic_tool_calling" | "mcp" | "web_search" | "computer_use" | "automations"
    The kind of tool.
    allowedDomains List<String>
    web_search tools: the domains searches are restricted to.
    allowedTools List<String>
    mcp tools: the names of the server's tools the agent may use. When unset, all tools are allowed.
    async Boolean
    function tools: whether the function is called asynchronously.
    connectionOrigin "service" | "environment"
    mcp tools: where the connection to the server is made from.
    contextSize "low" | "medium" | "high"
    web_search tools: how much search context is given to the model.
    credentialId String
    mcp tools: the ID of a stored credential used to authenticate to the server.
    deferLoading Boolean
    function tools: whether the function is only loaded once discovered through a tool_search tool.
    description String
    function tools: a description of what the function does.
    enabled Boolean
    programmatic_tool_calling tools: whether programmatic tool calling is enabled. Defaults to true.
    includeScreenshots Boolean
    computer_use tools: whether screenshots are included.
    location Property Map
    web_search tools: an approximate user location used to localize results.
    mode "disabled" | "cached" | "live"
    web_search tools: whether results are fetched live, served from cache, or disabled.
    name String
    function tools: the name of the function. Required.
    parameters Map<Any>
    function tools: a JSON Schema describing the function's parameters.
    requestMetadata Map<Any>
    mcp tools: metadata sent to the server with each request.
    required Boolean
    mcp tools: whether the agent requires the server to be available.
    serverLabel String
    mcp tools: a label identifying the MCP server. Required.
    transport Property Map
    mcp tools: how to connect to the MCP server. Required.

    AgentWebSearchLocation, AgentWebSearchLocationArgs

    City string
    Country string
    Region string
    Timezone string
    City string
    Country string
    Region string
    Timezone string
    city string
    country string
    region string
    timezone string
    city String
    country String
    region String
    timezone String
    city string
    country string
    region string
    timezone string
    city String
    country String
    region String
    timezone String

    ConnectionOrigin

    NameValue
    Serviceservice
    Environmentenvironment
    NameValue
    ConnectionOriginServiceservice
    ConnectionOriginEnvironmentenvironment
    Value
    service
    environment
    NameValue
    Serviceservice
    Environmentenvironment
    NameValue
    Serviceservice
    Environmentenvironment
    NameValue
    SERVICEservice
    ENVIRONMENTenvironment
    Value
    service
    environment

    McpTransportType

    NameValue
    Httphttp
    Stdiostdio
    NameValue
    McpTransportTypeHttphttp
    McpTransportTypeStdiostdio
    Value
    http
    stdio
    NameValue
    Httphttp
    Stdiostdio
    NameValue
    Httphttp
    Stdiostdio
    NameValue
    HTTPhttp
    STDIOstdio
    Value
    http
    stdio

    ReasoningEffort

    NameValue
    Nonenone
    Minimalminimal
    Lowlow
    Mediummedium
    Highhigh
    XHighxhigh
    Maxmax
    NameValue
    ReasoningEffortNonenone
    ReasoningEffortMinimalminimal
    ReasoningEffortLowlow
    ReasoningEffortMediummedium
    ReasoningEffortHighhigh
    ReasoningEffortXHighxhigh
    ReasoningEffortMaxmax
    Value
    none
    minimal
    low
    medium
    high
    xhigh
    max
    NameValue
    Nonenone
    Minimalminimal
    Lowlow
    Mediummedium
    Highhigh
    XHighxhigh
    Maxmax
    NameValue
    Nonenone
    Minimalminimal
    Lowlow
    Mediummedium
    Highhigh
    XHighxhigh
    Maxmax
    NameValue
    NONEnone
    MINIMALminimal
    LOWlow
    MEDIUMmedium
    HIGHhigh
    X_HIGHxhigh
    MAXmax
    Value
    none
    minimal
    low
    medium
    high
    xhigh
    max

    ReasoningSummary

    NameValue
    Conciseconcise
    Detaileddetailed
    Autoauto
    NameValue
    ReasoningSummaryConciseconcise
    ReasoningSummaryDetaileddetailed
    ReasoningSummaryAutoauto
    Value
    concise
    detailed
    auto
    NameValue
    Conciseconcise
    Detaileddetailed
    Autoauto
    NameValue
    Conciseconcise
    Detaileddetailed
    Autoauto
    NameValue
    CONCISEconcise
    DETAILEDdetailed
    AUTOauto
    Value
    concise
    detailed
    auto

    ServiceTier

    NameValue
    Autoauto
    Defaultdefault
    Flexflex
    Prioritypriority
    Fastfast
    Ultrafastultrafast
    NameValue
    ServiceTierAutoauto
    ServiceTierDefaultdefault
    ServiceTierFlexflex
    ServiceTierPrioritypriority
    ServiceTierFastfast
    ServiceTierUltrafastultrafast
    Value
    auto
    default
    flex
    priority
    fast
    ultrafast
    NameValue
    Autoauto
    Defaultdefault
    Flexflex
    Prioritypriority
    Fastfast
    Ultrafastultrafast
    NameValue
    Autoauto
    Defaultdefault
    Flexflex
    Prioritypriority
    Fastfast
    Ultrafastultrafast
    NameValue
    AUTOauto
    DEFAULTdefault
    FLEXflex
    PRIORITYpriority
    FASTfast
    ULTRAFASTultrafast
    Value
    auto
    default
    flex
    priority
    fast
    ultrafast

    TextFormatType

    NameValue
    Texttext
    JsonSchemajson_schema
    NameValue
    TextFormatTypeTexttext
    TextFormatTypeJsonSchemajson_schema
    Value
    text
    json_schema
    NameValue
    Texttext
    JsonSchemajson_schema
    NameValue
    Texttext
    JsonSchemajson_schema
    NameValue
    TEXTtext
    JSON_SCHEMAjson_schema
    Value
    text
    json_schema

    TextVerbosity

    NameValue
    Lowlow
    Mediummedium
    Highhigh
    NameValue
    TextVerbosityLowlow
    TextVerbosityMediummedium
    TextVerbosityHighhigh
    Value
    low
    medium
    high
    NameValue
    Lowlow
    Mediummedium
    Highhigh
    NameValue
    Lowlow
    Mediummedium
    Highhigh
    NameValue
    LOWlow
    MEDIUMmedium
    HIGHhigh
    Value
    low
    medium
    high

    ToolType

    NameValueDescription
    FunctionfunctionA function the caller implements.
    ToolSearchtool_searchLets the agent discover deferred function tools.
    ProgrammaticToolCallingprogrammatic_tool_callingLets the agent call tools from code.
    McpmcpTools served by a Model Context Protocol server.
    WebSearchweb_searchWeb search.
    ComputerUsecomputer_useComputer use.
    AutomationsautomationsLets the agent manage its own scheduled wakeups.
    NameValueDescription
    ToolTypeFunctionfunctionA function the caller implements.
    ToolTypeToolSearchtool_searchLets the agent discover deferred function tools.
    ToolTypeProgrammaticToolCallingprogrammatic_tool_callingLets the agent call tools from code.
    ToolTypeMcpmcpTools served by a Model Context Protocol server.
    ToolTypeWebSearchweb_searchWeb search.
    ToolTypeComputerUsecomputer_useComputer use.
    ToolTypeAutomationsautomationsLets the agent manage its own scheduled wakeups.
    ValueDescription
    functionA function the caller implements.
    tool_searchLets the agent discover deferred function tools.
    programmatic_tool_callingLets the agent call tools from code.
    mcpTools served by a Model Context Protocol server.
    web_searchWeb search.
    computer_useComputer use.
    automationsLets the agent manage its own scheduled wakeups.
    NameValueDescription
    FunctionfunctionA function the caller implements.
    ToolSearchtool_searchLets the agent discover deferred function tools.
    ProgrammaticToolCallingprogrammatic_tool_callingLets the agent call tools from code.
    McpmcpTools served by a Model Context Protocol server.
    WebSearchweb_searchWeb search.
    ComputerUsecomputer_useComputer use.
    AutomationsautomationsLets the agent manage its own scheduled wakeups.
    NameValueDescription
    FunctionfunctionA function the caller implements.
    ToolSearchtool_searchLets the agent discover deferred function tools.
    ProgrammaticToolCallingprogrammatic_tool_callingLets the agent call tools from code.
    McpmcpTools served by a Model Context Protocol server.
    WebSearchweb_searchWeb search.
    ComputerUsecomputer_useComputer use.
    AutomationsautomationsLets the agent manage its own scheduled wakeups.
    NameValueDescription
    FUNCTIONfunctionA function the caller implements.
    TOOL_SEARCHtool_searchLets the agent discover deferred function tools.
    PROGRAMMATIC_TOOL_CALLINGprogrammatic_tool_callingLets the agent call tools from code.
    MCPmcpTools served by a Model Context Protocol server.
    WEB_SEARCHweb_searchWeb search.
    COMPUTER_USEcomputer_useComputer use.
    AUTOMATIONSautomationsLets the agent manage its own scheduled wakeups.
    ValueDescription
    functionA function the caller implements.
    tool_searchLets the agent discover deferred function tools.
    programmatic_tool_callingLets the agent call tools from code.
    mcpTools served by a Model Context Protocol server.
    web_searchWeb search.
    computer_useComputer use.
    automationsLets the agent manage its own scheduled wakeups.

    WebSearchContextSize

    NameValue
    Lowlow
    Mediummedium
    Highhigh
    NameValue
    WebSearchContextSizeLowlow
    WebSearchContextSizeMediummedium
    WebSearchContextSizeHighhigh
    Value
    low
    medium
    high
    NameValue
    Lowlow
    Mediummedium
    Highhigh
    NameValue
    Lowlow
    Mediummedium
    Highhigh
    NameValue
    LOWlow
    MEDIUMmedium
    HIGHhigh
    Value
    low
    medium
    high

    WebSearchMode

    NameValue
    Disableddisabled
    Cachedcached
    Livelive
    NameValue
    WebSearchModeDisableddisabled
    WebSearchModeCachedcached
    WebSearchModeLivelive
    Value
    disabled
    cached
    live
    NameValue
    Disableddisabled
    Cachedcached
    Livelive
    NameValue
    Disableddisabled
    Cachedcached
    Livelive
    NameValue
    DISABLEDdisabled
    CACHEDcached
    LIVElive
    Value
    disabled
    cached
    live

    Package Details

    Repository
    openai pulumi-labs/pulumi-openai
    License
    Apache-2.0
    OpenAI
    Viewing docs for OpenAI v0.3.1
    published on Monday, Nov 23, 2026 by Pulumi Labs

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial