Simple React AI Agent with Amazon Bedrock

Simple React AI Agent with Amazon Bedrock

Step 5. Configure and publish the processes

Step 5. Configure and publish the processes

Configure the LLM model, loop limit, and prompt request if required and publish the processes.
  1. To publish the
    Search Tool
    process, click
    Actions
    in the row that contains the process and select
    Publish
    .
  2. To publish the
    Action Detail Extractor
    process, click
    Actions
    in the row that contains the process and select
    Publish
    .
  3. Open the
    Prompt Amazon Bedrock
    process.
  4. On the
    Temp Fields
    tab of the Start step, the
    Model_LLM
    field is set to
    anthropic.claude-3-sonnet-20240229-v1:0
    by default. You can optionally edit the model version. For information about changing the model version, see the Amazon Bedrock documentation.
  5. Save and publish the process.
  6. Open the
    Search Tool Workflow
    process.
  7. On the
    Temp Fields
    tab of the Start step, the
    Loop_Limit
    field is set to
    5
    by default. You can optionally edit the limit. This field defines the number of times the Search Tool subprocess can be called. You can adjust the number of repeat queries in the Search Tool to get new information and better results. However, this will increase the number of tokens used.
  8. On the
    Assignment
    tab of the
    Create Prompt to LLM
    step, the
    Prompt
    field is configured to contain the request template for the prompt to LLM. Optionally, you can configure the LLM behavior in the
    Prompt_Request
    field using the Expression Editor, as shown in the following sample code:
    For Prompt_Request: <root xmlns:m="urn:informatica:ae:xquery:json2xml:meta-data"> <messages m:isArray="true"> <role>user</role> <content m:isArray="true"> <type>text</type> <text>{$temp.Prompt }</text> </content> </messages> </root>
  9. Save and publish the process.
Alternatively, you can also publish the
Search Tool Workflow
process from the assets page. To publish the process, click
Actions
in the row that contains the process and select
Publish
. The subprocesses will be published automatically. You can modify the process as mentioned in steps 7 and 8 before publishing the process if needed.

0 COMMENTS

We’d like to hear from you!