Class InlineToolSchema
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.ToolSchema
software.amazon.awscdk.services.bedrockagentcore.InlineToolSchema
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.451Z")
@Stability(Stable)
public class InlineToolSchema
extends ToolSchema
Class to define a Tool Schema from an inline string.
The schema can be provided directly as a string in either JSON or YAML format.
Example:
InlineToolSchema toolSchema = ToolSchema.fromInline(List.of(ToolDefinition.builder()
.name("hello_world")
.description("A simple hello world tool")
.inputSchema(SchemaDefinition.builder()
.type(SchemaDefinitionType.OBJECT)
.properties(Map.of(
"name", SchemaDefinition.builder()
.type(SchemaDefinitionType.STRING)
.description("The name to greet")
.build()))
.required(List.of("name"))
.build())
.build()));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionInlineToolSchema(List<ToolDefinition> schema) protectedInlineToolSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedInlineToolSchema(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(software.constructs.Construct scope) Bind the schema to a construct.voidgrantPermissionsToRole(IRole _role) Grant permissions to the role.Methods inherited from class software.amazon.awscdk.services.bedrockagentcore.ToolSchema
fromInline, fromLocalAsset, fromS3File, fromS3File, getBucketOwnerAccountId, getInlineSchema, getS3FileMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
InlineToolSchema
protected InlineToolSchema(software.amazon.jsii.JsiiObjectRef objRef) -
InlineToolSchema
protected InlineToolSchema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
InlineToolSchema
- Parameters:
schema- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) public void bind(@NotNull software.constructs.Construct scope) Bind the schema to a construct.- Specified by:
bindin classToolSchema- Parameters:
scope- This parameter is required.
-
grantPermissionsToRole
Grant permissions to the role.- Specified by:
grantPermissionsToRolein classToolSchema- Parameters:
_role- This parameter is required.
-