Class: Aws::BedrockAgentRuntime::Types::InvokeAgentRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[:input_text]

Instance Attribute Summary collapse

Instance Attribute Details

#agent_alias_idString

The alias of the agent to use.

Returns:

  • (String)


2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end

#agent_idString

The unique identifier of the agent to use.

Returns:

  • (String)


2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end

#enable_traceBoolean

Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Trace enablement.

Returns:

  • (Boolean)


2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end

#end_sessionBoolean

Specifies whether to end the session with the agent or not.

Returns:

  • (Boolean)


2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end

#input_textString

The prompt text to send the agent.

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

Returns:

  • (String)


2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end

#memory_idString

The unique identifier of the agent memory.

Returns:

  • (String)


2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end

#session_idString

The unique identifier of the session. Use the same value across requests to continue the same conversation.

Returns:

  • (String)


2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end

#session_stateTypes::SessionState

Contains parameters that specify various attributes of the session. For more information, see Control session context.

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

Returns:



2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb', line 2374

class InvokeAgentRequest < Struct.new(
  :agent_alias_id,
  :agent_id,
  :enable_trace,
  :end_session,
  :input_text,
  :memory_id,
  :session_id,
  :session_state)
  SENSITIVE = [:input_text]
  include Aws::Structure
end