-
Notifications
You must be signed in to change notification settings - Fork 10.3k
WIP - fixing typos #20203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
WIP - fixing typos #20203
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| --- | ||
| title: Calling LLMs | ||
| title: Human in the Loop | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 3 | ||
| order: 4 | ||
|
|
||
| --- | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,66 @@ | ||
| --- | ||
| title: Workflows | ||
| title: What are Agents? | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 1 | ||
| order: 2 | ||
|
|
||
| --- | ||
|
|
||
| import { Render } from "~/components"; | ||
|
|
||
| TODO - what are agents? | ||
| ### What is an agent? | ||
| An agent is an AI system that can autonomously execute tasks by making decisions about tool usage and process flow. Unlike traditional automation that follows predefined paths, agents can dynamically adapt their approach based on context and intermediate results. Agents are also distinct from co-pilots (e.g. traditional chat applications) in that they can fully automate a task, as opposed to simply augmenting and extending human input. | ||
|
|
||
| - terminology | ||
| - diagram: orchestrator / container / task / workflow | ||
| - **Agents** → non-linear, non-deterministic (can change from run to run) | ||
| - **Workflows** → linear, deterministic execution paths | ||
| - **Co-pilots** → augmentative AI assistance requiring human intervention | ||
|
|
||
| ### Example: Booking Vacations | ||
| If this is your first time working with, or interacting with agents, this example will illustrate how an agent works within a context like booking a vacation. If you're already familiar with the topic, read on. | ||
|
|
||
| Imagine you're trying to book a vacation. You need to research flights, find hotels, check restaurant reviews, and keep track of your budget. | ||
|
|
||
| ##### Traditional Workflow Automation | ||
| A traditional automation system follows a predetermined sequence: | ||
| - Takes specific inputs (dates, location, budget) | ||
| - Calls predefined API endpoints in a fixed order | ||
| - Returns results based on hardcoded criteria | ||
| - Cannot adapt if unexpected situations arise | ||
|
|
||
|  | ||
|
|
||
| ##### AI Co-pilot | ||
| A co-pilot acts as an intelligent assistant that: | ||
|
|
||
| - Provides hotel and itinerary recommendations based on your preferences | ||
| - Can understand and respond to natural language queries | ||
| - Offers guidance and suggestions | ||
| - Requires human decision-making and action for execution | ||
|
|
||
|  | ||
|
|
||
| ##### Agent | ||
| An agent combines AI's ability to make judgements and call the relevant tools to execute the task. An agent's output will be nondeterministic given: | ||
|
|
||
| - Real-time availability and pricing changes | ||
| - Dynamic prioritization of constraints | ||
| - Ability to recover from failures | ||
| - Adaptive decision-making based on intermediate results | ||
|
|
||
|  | ||
|
|
||
| An agents can dynamically generate and itinerary and execute on booking reservations, similarly to what you would expect from a travel agent. | ||
|
|
||
| ### Three primary components of agent systems: | ||
|
|
||
| - **Decision Engine**: Usually an LLM (Large Language Model) that determines action steps | ||
| - **Tool Integration**: APIs, functions, and services the agent can utilize | ||
| - **Memory System**: Maintains context and tracks task progress | ||
|
|
||
| #### How Agents Work | ||
|
|
||
| Agents operate in a continuous loop of: | ||
| 1. **Observing** the current state or task | ||
| 2. **Planning** what actions to take, using AI for reasoning | ||
| 3. **Executing** those actions using available tools (often APIs or [MCPs](https://modelcontextprotocol.io/introduction)) | ||
| 4. **Learning** from the results (storing results in memory, updating task progress, and preparing for next iteration) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| --- | ||
| title: What are Agents | ||
| title: Workflows | ||
| pcx_content_type: concept | ||
| sidebar: | ||
| order: 2 | ||
| order: 3 | ||
|
|
||
| --- | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issues:
Fix Explanation:
Replaced 'e.g.' with 'such as' to follow the style guide recommendation and improve sentence flow.