You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/develop-ai-enabled-apps-using-github-copilot-sdk/includes/2-what-ai-agent.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
-
An AI agent is a goal-driven AI entity that can reason, take actions, and adapt autonomously in pursuit of an objective. Unlike a simple chatbot that only responds to user queries with pre-scripted answers, an AI agent can make decisions, use tools or APIs, and maintain memory of context to achieve a goal without step-by-step human guidance. In essence, chatbots respond to individual queries; AI agents pursue goals through multi-step reasoning and action.
1
+
An AI agent is a goal-driven AI entity that can reason, take actions, and adapt autonomously in pursuit of an objective. Unlike a simple chatbot that only responds to user queries with prescripted answers, an AI agent can make decisions, use tools or APIs, and maintain memory of context to achieve a goal without step-by-step human guidance. In essence, chatbots respond to individual queries; AI agents pursue goals through multi-step reasoning and action.
2
2
3
3
## How AI agents differ from chatbots
4
4
5
-
A traditional chatbot might answer "What's my account balance?" with information from a database. An AI agent, on the other hand, could not only fetch your balance but also proactively alert you if it detects unusual spending, or even execute tasks like transferring funds or scheduling a meeting with your financial advisor. The agent reasons about your goal (managing your finances) rather than just reacting to a single question.
5
+
A traditional chatbot might answer "What's my account balance?" with information from a database. An AI agent, on the other hand, could fetch your balance and proactively alert you if it detects unusual spending. The agent could even execute tasks like transferring funds or scheduling a meeting with your financial advisor. Agents are able to comprehend your goal (managing your finances) rather than just reacting to a single question.
6
6
7
7
The key distinction is that chatbots follow predetermined conversational paths, while agents dynamically plan and execute multi-step workflows to achieve an outcome.
8
8
9
9
## Key capabilities of AI agents
10
10
11
-
Modern AI agents are powered by advanced AI models (often large language models, or LLMs) and are defined by several core abilities that distinguish them from basic automation:
11
+
Modern AI agents are powered by advanced AI models, often large language models (LLMs), and provide several core abilities that distinguish them from basic automation:
12
12
13
13
-**Reasoning and planning**: Agents use AI models to interpret requests, break them into steps, and decide what actions to take. Rather than following a fixed script, they formulate plans based on the current situation.
14
14
@@ -18,7 +18,7 @@ Modern AI agents are powered by advanced AI models (often large language models,
18
18
19
19
-**Iterative execution**: Agents operate in a loop of reasoning and acting. They reason about what to do next, take an action (like calling a tool), observe the result, and then decide whether to take another action or provide a final response. This loop continues until the agent's goal is accomplished or it reaches a stopping condition.
20
20
21
-
These capabilities let an AI agent operate with a degree of independence. The agent uses its AI reasoning to decide *what* needs to be done, it acts by calling tools or issuing commands to do it, and it iterates by checking outcomes and refining its plan as needed.
21
+
These capabilities let an AI agent operate with a degree of independence. Agents use AI reasoning to decide *what* needs to be done. With a plan in place, agents call tools or issue commands to complete the defined tasks. Once the tasks are complete, agents check their outcomes, refine their plan as needed, and iterate until they achieve the desired result. This cycle of reasoning, acting, and observing is what enables agents to handle complex, multi-step goals that go beyond simple question-answering.
22
22
23
23
## How AI agents compare to automation scripts
24
24
@@ -36,14 +36,14 @@ AI agents are most effective in scenarios where tasks:
36
36
- Involve multiple steps or decisions.
37
37
- Benefit from automation with minimal human oversight.
38
38
39
-
If a task is straightforward and single-step (like "show latest sales figures"), a simple query or bot may suffice. But if it's complex (like "find all customers who overpaid and initiate refunds" or "monitor my servers and fix issues"), an agent is more suitable because it can handle the decision process and execution.
39
+
If a task is straightforward and single-step (like "show latest sales figures"), a simple query or bot might suffice. But if it's complex (like "find all customers who overpaid and initiate refunds" or "monitor my servers and fix issues"), an agent is more suitable because it can handle the decision process and execution.
40
40
41
41
The following table compares the capabilities of chatbots, automation scripts, and AI agents:
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/develop-ai-enabled-apps-using-github-copilot-sdk/includes/3-what-github-copilot-sdk.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The GitHub Copilot SDK is a multi-platform toolkit (currently in Technical Previ
4
4
5
5
Building a full-featured AI agent from the ground up is complex. You need to handle conversation state management across turns, decide when to call which external API, ensure the AI's responses stay within boundaries, manage multiple AI models for different tasks, and implement safety measures. Building agentic workflows from scratch means you've essentially built a mini platform before you even get to your business logic.
6
6
7
-
The Copilot SDK removes that complexity by providing a pre-built, production-tested agent engine. The SDK handles authentication, model management, chat sessions, and streaming. You focus on what gets built on top of those building blocks—your domain-specific tools and business logic.
7
+
The Copilot SDK removes that complexity by providing a prebuilt, production-tested agent engine. The SDK handles authentication, model management, chat sessions, and streaming. You focus on what gets built on top of those building blocks—your domain-specific tools and business logic.
8
8
9
9
## Architecture overview
10
10
@@ -35,7 +35,7 @@ The SDK provides several built-in capabilities that simplify building AI agents.
35
35
36
36
### Production-grade agent loop
37
37
38
-
The SDK provides the same proven execution loop that powers GitHub Copilot CLI. This loop manages multi-turn conversations, calls tools, and iterates until the task is complete. You don't need to code the planning and orchestration logic.
38
+
The SDK provides the same proven execution loop that powers GitHub Copilot CLI. This execution loop manages multi-turn conversations, calls tools, and iterates until the task is complete. You don't need to code the planning and orchestration logic.
39
39
40
40
### Tool orchestration
41
41
@@ -111,7 +111,7 @@ The SDK uses an event-driven communication model. When you send a message to a s
111
111
-**SessionErrorEvent**: An error occurred during processing.
112
112
-**ToolExecutionStartEvent** and **ToolExecutionCompleteEvent**: A tool was invoked.
113
113
114
-
You subscribe to these events to capture the agent's responses and handle errors. For non-streaming scenarios, use `AssistantMessageEvent` to collect the full response. For streaming scenarios (like showing a typing indicator in a chat UI), use `AssistantMessageDeltaEvent` to render tokens as they arrive.
114
+
You subscribe to these events to capture the agent's responses and handle errors. For nonstreaming scenarios, use `AssistantMessageEvent` to collect the full response. For streaming scenarios (like showing a typing indicator in a chat UI), use `AssistantMessageDeltaEvent` to render tokens as they arrive.
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/develop-ai-enabled-apps-using-github-copilot-sdk/includes/4-examine-ai-agent-use-cases.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ An online retail company deploys an AI agent to handle customer support and orde
6
6
7
7
### How it works
8
8
9
-
The agent connects to the company's backend APIs through registered tools. It has tools for looking up orders, creating return requests, issuing refunds, and sending customer communications. When a customer says, "My order arrived damaged, what can I do?", the agent verifies the order details through an API call, then responds with both empathy and action: "I've initiated a return for you and scheduled a courier pickup for tomorrow. You'll be refunded to your original payment method."
9
+
The agent connects to the company's backend APIs through registered tools. It has tools for looking up orders, creating return requests, issuing refunds, and sending customer communications. When a customer says, "My order arrived damaged, what can I do?", the agent verifies the order details through an API call, then responds with both empathy and action: "I've initiated a return for you and scheduled a courier pickup for tomorrow. You'll receive a refund that's applied to your original payment method."
10
10
11
-
If the agent encounters a request outside its capability (like a complex policy dispute), it escalates to a human support representative and provides all the context it gathered during the conversation.
11
+
If the agent encounters a request outside its capability (like a complex policy dispute), it escalates to a human support representative and provides the context it gathered during the conversation.
12
12
13
13
### Why it matters
14
14
@@ -27,7 +27,7 @@ This approach automates the time-consuming parts of sales—research, data entry
27
27
28
28
## Finance and accounting automation agent
29
29
30
-
An enterprise finance department uses an AI agent to handle routine financial operations: invoice processing, expense reconciliation, and transaction matching. Each day, the agent processes incoming invoices by extracting relevant data (vendor name, amounts, due dates), then cross-references them against purchase orders in the ERP system.
30
+
An enterprise finance department uses an AI agent to handle routine financial operations: invoice processing, expense reconciliation, and transaction matching. Each day, the agent processes incoming invoices by extracting relevant data (vendor name, amounts, due dates), then cross-references them against purchase orders in the enterprise resource planning (ERP) system.
31
31
32
32
If the invoice matches the purchase order within acceptable variance thresholds, the agent approves it for payment. When the agent detects discrepancies—like an invoice amount that exceeds the purchase order by more than the allowed tolerance—it flags the issue and routes it to a human accountant with a detailed explanation.
33
33
@@ -45,7 +45,7 @@ This type of agent helps reduce both stockouts (lost sales) and excess inventory
45
45
46
46
A technology company uses an AI agent as a first responder to system alerts and incidents. When a monitoring alert fires (such as high CPU usage on a database server), the agent investigates by running diagnostic scripts, analyzing logs, and attempting known remediation steps.
47
47
48
-
For example, if the agent detects a long-running query causing high CPU, it can terminate the query and verify that performance returns to normal. If it resolves the issue, it logs the actions taken and closes the incident. If the issue persists after exhausting its troubleshooting steps, the agent escalates to a human engineer with all the diagnostic context it gathered.
48
+
For example, if the agent detects a long-running query causing high CPU, it can terminate the query and verify that performance returns to normal. If it resolves the issue, it logs the actions taken and closes the incident. If the issue persists after exhausting its troubleshooting steps, the agent escalates to a human engineer with the diagnostic context it gathered.
49
49
50
50
This agent is particularly valuable for its speed—it can begin investigating within seconds of an alert, rather than the minutes it takes for a human to notice and respond. Initial deployments typically restrict the agent to safe, reversible actions (like restarting services or clearing temp files) and require human approval for riskier operations.
0 commit comments