ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 AIF-C01

Agentic workflow infrastructure

Flows, Step Functions, Lambda tools, queues, and the IaC, VPC and IAM that connect them.

本课尚未翻译,暂以英文显示。

你在AI Practitioner中已学过

  • Bedrock Flows links prompts, models, knowledge bases, Lambda functions and conditions along a path you design.
  • A flow has a draft, versions and aliases.
阅读AI Practitioner课程
  • Bedrock Flows

    It does
    Visual path of nodes
    Pick it when
    The steps are known
  • Step Functions

    It does
    Retries, waits, approval, parallel
    Pick it when
    A long process around agents
  • Lambda tools

    It does
    Quick actions for the agent
    Pick it when
    Work ends in seconds
  • SQS and a worker

    It does
    Slow jobs off the request path
    Pick it when
    Work takes minutes
  • IaC, IAM and VPC

    It does
    Repeatable, least-privilege wiring
    Pick it when
    Every environment
Five building blocks for agentic workflows.

1 / 2

  • Bedrock Flows

    It does
    Visual path of nodes
    Pick it when
    The steps are known
  • Step Functions

    It does
    Retries, waits, approval, parallel
    Pick it when
    A long process around agents
  • Lambda tools

    It does
    Quick actions for the agent
    Pick it when
    Work ends in seconds

2 / 2

  • SQS and a worker

    It does
    Slow jobs off the request path
    Pick it when
    Work takes minutes
  • IaC, IAM and VPC

    It does
    Repeatable, least-privilege wiring
    Pick it when
    Every environment
Five building blocks for agentic workflows.
Agent
Queue
Lambda worker
Result store
  1. 1The agent calls a tool that puts a job on the queue and returns a job id.
  2. 2A worker takes the job from the queue.
  3. 3The worker saves the result. The agent reads it later.
A slow tool leaves the request path through a queue.

是什么

Flows nodes include input and output, prompt, agent, knowledge base, Lambda function, condition, iterator and collector, a DoWhile loop (with a maximum number of iterations, 10 by default), S3 storage and retrieval, Amazon Lex, and inline code. A flow runs when you call InvokeFlow on an alias. Use Flows when the steps are known and the model should not choose them.

是什么

AWS Step Functions orchestrates longer processes around agents. A state machine can call the agent through Lambda or an SDK integration, branch on the result, retry, wait for a human approval and run several agents in parallel. Use Lambda functions as tools for short work. For slow work, the tool puts a job on an Amazon SQS queue and returns a job id, a worker processes it, and the agent checks the result later or is called back.

是什么

Wire it with infrastructure as code. Define agents, aliases, flows, Lambda functions and roles in one stack. A Lambda tool needs a resource-based policy that lets Bedrock invoke it. Roles follow least privilege. Lambda functions in a VPC need an interface endpoint for Bedrock Runtime or a NAT gateway. AgentCore Runtime has network settings for reaching private resources.

要记住

  • Flows: fixed paths made of prompt, agent, knowledge base, Lambda, condition and loop nodes.
  • DoWhile loops stop at a maximum iteration count.
  • Step Functions: long workflows with retries, approvals and parallel agents.
  • Lambda tools for quick actions. SQS and a worker for slow ones.

要记住

  • IaC for agents and flows. Resource policy lets Bedrock invoke the Lambda tool.
  • In a VPC, use interface endpoints or NAT for Bedrock calls.

考试中

  • “A fixed multi-step AI process with a branch on a condition” points to Bedrock Flows.
  • “Agent output needs a human approval that may take days” points to Step Functions with a callback.
  • “A tool takes ten minutes” points to a queue and a worker, with the agent checking later.
  • “Lambda tool is never called by the agent” points to a missing resource-based policy for Bedrock.