Amazon SageMaker Unified Studio is in preview release and is subject to change.
Create an Amazon Bedrock IDE function component
You can create a function as a component in an Amazon Bedrock IDE project. If you are creating an app, you can can also create a function when you configure the app.
To create a function component
-
Navigate to the Amazon SageMaker Unified Studio landing page by using the URL from your admininstrator.
-
Access Amazon SageMaker Unified Studio using your IAM or single sign-on (SSO) credentials. For more information, see Access Amazon SageMaker Unified Studio.
-
Choose the Build menu at the top of the page.
-
In the MACHINE LEARNING & GENERATIVE AI section, choose My apps.
In the Select or create a new project to continue dialog box, select the project that you want to use.
-
In the left pane, choose Asset gallery.
Choose My components.
-
In Asset gallery, choose My components.
-
In the Components section, choose Create component and then Function. The Create function pane is shown.
-
For Function name, enter a name for the function in in Function name.
-
For Function description, enter a description for the function.
-
For Function schema, enter the JSON or YAML format OpenAPI schema for the API. Alternatively, upload the JSON or YAML for the file by choosing Import JSON/YAML. You can clear the text box by choosing Reset.
Choose Validate schema to validate the schema.
-
For Authentication method select the authentication method for your API server. By default, Amazon Bedrock IDE preselects the authentication based on information it finds in your OpenAPI schema. For information about authentication methods, see Authentication methods.
-
Enter the information for the authention method that you selected in the previous step.
-
For API servers, enter the URL for your server in Server URL. This value is autopopulated if the server URL is in the schema.
-
Choose Create to create your function.
-
Add your function to a chat agent app by doing Add a function component to a chat agent app.