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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"id": "bfff9a65",
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"source": [
|
| 8 |
+
"# Agentic AI as a Partner in Leadership Excellence\n",
|
| 9 |
+
"\n",
|
| 10 |
+
"Welcome to **Session #6** of the One Million Leaders Asia (OMLAS) Champion Training (Pakistan edition). In this hands‑on session we will explore how *Agentic AI* can support leadership excellence. You don't need to be a technical expert – this notebook is designed for beginners and decision‑makers who want to understand what agentic AI is, why it matters for leaders, and how we can build a simple multi‑agent system.\n",
|
| 11 |
+
"\n",
|
| 12 |
+
"**Speaker**: *Kheem Parkash Dharmani* – AI & Machine Learning Engineer with deep expertise in NLP, Generative AI, and LLM‑based solutions. Kheem has built multi‑modal AI applications for healthcare and automation and will guide us through the session.\n",
|
| 13 |
+
"\n",
|
| 14 |
+
"**Event details**:\n",
|
| 15 |
+
"\n",
|
| 16 |
+
"- **Date**: **7 December 2025** (Wednesday)\n",
|
| 17 |
+
"- **Time**: **08:00–09:00 PM PKT**\n",
|
| 18 |
+
"- **Location**: Online (Pakistan)\n",
|
| 19 |
+
"\n",
|
| 20 |
+
"Below is the event poster to set the context:\n"
|
| 21 |
+
]
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"cell_type": "code",
|
| 25 |
+
"execution_count": null,
|
| 26 |
+
"id": "c5699c52",
|
| 27 |
+
"metadata": {
|
| 28 |
+
"hide_input": true
|
| 29 |
+
},
|
| 30 |
+
"outputs": [],
|
| 31 |
+
"source": [
|
| 32 |
+
"from IPython.display import Image, display\n",
|
| 33 |
+
"# Display the event poster stored in the shared directory\n",
|
| 34 |
+
"image_path = '/home/oai/share/1765357356721.jpeg'\n",
|
| 35 |
+
"display(Image(filename=image_path, width=600))"
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"cell_type": "markdown",
|
| 40 |
+
"id": "0a239580",
|
| 41 |
+
"metadata": {},
|
| 42 |
+
"source": [
|
| 43 |
+
"## Session Agenda (1 hour)\n",
|
| 44 |
+
"\n",
|
| 45 |
+
"1. **Introduction & Motivation** – why agentic AI matters for leadership.\n",
|
| 46 |
+
"2. **Understanding AI, Agentic AI & Multi‑Agent Systems** – key definitions and simple analogies.\n",
|
| 47 |
+
"3. **Agentic AI for Leadership Excellence** – benefits, challenges and examples.\n",
|
| 48 |
+
"4. **Hands‑On: Build a simple multi‑agent workflow** – using Python and LangGraph (conceptual demonstration).\n",
|
| 49 |
+
"5. **Responsible AI & Ethics** – ensuring fairness, transparency, privacy and accountability.\n",
|
| 50 |
+
"6. **Q&A / Discussion** – your questions answered.\n",
|
| 51 |
+
"7. **Wrap‑up & Next Steps** – resources and recommendations.\n",
|
| 52 |
+
"\n",
|
| 53 |
+
"Each section contains easy‑to‑follow explanations and interactive examples. Feel free to run the code cells if you're comfortable using Python, or simply read along.\n"
|
| 54 |
+
]
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"cell_type": "markdown",
|
| 58 |
+
"id": "53981b39",
|
| 59 |
+
"metadata": {},
|
| 60 |
+
"source": [
|
| 61 |
+
"## 1. Introduction & Motivation\n",
|
| 62 |
+
"\n",
|
| 63 |
+
"Artificial intelligence (AI) has progressed from simple automation to systems that can reason, learn and act in complex environments. **Agentic AI** refers to AI systems that take actions autonomously, coordinate with other agents, and adapt to new information. Instead of acting as a single monolithic model, **agentic systems are built like teams** – each agent specialises in a task and the system orchestrates them like a relay race.\n",
|
| 64 |
+
"\n",
|
| 65 |
+
"For leaders, this shift means AI can become a *partner* rather than just a tool. Agentic AI can help:\n",
|
| 66 |
+
"\n",
|
| 67 |
+
"- **Gather and synthesise information** quickly.\n",
|
| 68 |
+
"- **Take informed actions** (e.g., sending emails, analysing reports) with oversight.\n",
|
| 69 |
+
"- **Scale decision‑making** by handling routine tasks and freeing up leaders' time for strategic thinking.\n",
|
| 70 |
+
"- **Promote collaboration** between humans and AI, encouraging new roles such as **AI whisperers** and **Chief Agentics Officers**【644505837552892†L386-L436】【164762978622591†L63-L68】.\n",
|
| 71 |
+
"\n",
|
| 72 |
+
"In Pakistan and across Asia, institutions are exploring how to integrate AI ethically and responsibly. This session aims to demystify agentic AI so leaders can harness its potential while understanding its limitations.\n"
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"cell_type": "markdown",
|
| 77 |
+
"id": "9d4892bf",
|
| 78 |
+
"metadata": {},
|
| 79 |
+
"source": [
|
| 80 |
+
"## 2. Understanding AI, Agentic AI & Multi‑Agent Systems\n",
|
| 81 |
+
"\n",
|
| 82 |
+
"Let's clarify some terminology:\n",
|
| 83 |
+
"\n",
|
| 84 |
+
"### 2.1 Artificial Intelligence (AI)\n",
|
| 85 |
+
"AI encompasses techniques that enable machines to perform tasks that normally require human intelligence, such as learning, problem‑solving and language understanding. Traditional AI often focuses on *narrow tasks* (e.g., image classification) and requires human direction.\n",
|
| 86 |
+
"\n",
|
| 87 |
+
"### 2.2 Agentic AI\n",
|
| 88 |
+
"According to the AlphaBOLD discussion, **agentic AI** refers to **autonomous systems that can reason, plan and act** across multiple platforms with minimal human supervision【644505837552892†L379-L383】. Agentic AI differs from standard automation in several ways:\n",
|
| 89 |
+
"\n",
|
| 90 |
+
"| Feature | Traditional Automation | Agentic AI |\n",
|
| 91 |
+
"| --- | --- | --- |\n",
|
| 92 |
+
"| **Behaviour** | Follows a fixed script; limited adaptability | Can reason, plan and adapt to new information |\n",
|
| 93 |
+
"| **Interactions** | Single agent or tool | Multiple agents collaborating via a shared state |\n",
|
| 94 |
+
"| **Human oversight** | High; requires explicit instruction | Lower; humans provide goals and guardrails |\n",
|
| 95 |
+
"| **Outcome** | Efficiency in repetitive tasks | Flexibility and creativity in complex tasks |\n",
|
| 96 |
+
"\n",
|
| 97 |
+
"A helpful analogy is a **relay race**: Runner A (an agent) completes a lap (task) and passes the baton (data) to Runner B. Each runner has a specific role, and the race depends on smooth handovers.\n",
|
| 98 |
+
"\n",
|
| 99 |
+
"### 2.3 Multi‑Agent Systems (MAS)\n",
|
| 100 |
+
"A **multi‑agent system** is a computational system where multiple agents interact with each other and their environment to achieve individual or collective goals【82730657746531†L104-L110】. Key points:\n",
|
| 101 |
+
"\n",
|
| 102 |
+
"- Each agent has its own knowledge and goals.\n",
|
| 103 |
+
"- Agents may **cooperate**, **compete** or **coordinate**.\n",
|
| 104 |
+
"- MAS are used to tackle problems too complex for a single agent (e.g., logistics, robotics, smart grids).\n",
|
| 105 |
+
"\n",
|
| 106 |
+
"In our context, an agent can be a piece of code (function) that performs a specific task (e.g., research or writing). We coordinate these agents using a workflow engine like LangGraph.\n"
|
| 107 |
+
]
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"cell_type": "markdown",
|
| 111 |
+
"id": "89ab0c0a",
|
| 112 |
+
"metadata": {},
|
| 113 |
+
"source": [
|
| 114 |
+
"## 3. Multi‑Agent Workflow & LangGraph\n",
|
| 115 |
+
"\n",
|
| 116 |
+
"**LangGraph** is a lightweight Python framework for orchestrating a graph of tasks or agents. Instead of writing one giant prompt, you break your logic into smaller steps. In LangGraph:\n",
|
| 117 |
+
"\n",
|
| 118 |
+
"- **Nodes** represent the agents or functions (the runners).\n",
|
| 119 |
+
"- **Edges** represent the rules of who goes next (the track).\n",
|
| 120 |
+
"- **State** is the shared memory accessible to all agents (the baton).\n",
|
| 121 |
+
"\n",
|
| 122 |
+
"Below is a simple diagram illustrating the flow between a *Researcher* agent and a *Writer* agent. The Researcher looks up information, updates the shared state with the findings, and hands control to the Writer, who drafts content based on the research.\n"
|
| 123 |
+
]
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"cell_type": "code",
|
| 127 |
+
"execution_count": null,
|
| 128 |
+
"id": "2189ef3d",
|
| 129 |
+
"metadata": {
|
| 130 |
+
"hide_input": false
|
| 131 |
+
},
|
| 132 |
+
"outputs": [],
|
| 133 |
+
"source": [
|
| 134 |
+
"import matplotlib.pyplot as plt\n",
|
| 135 |
+
"\n",
|
| 136 |
+
"# Define positions for nodes\n",
|
| 137 |
+
"positions = {\n",
|
| 138 |
+
" 'Start': (0.5, 0.5),\n",
|
| 139 |
+
" 'Researcher': (2.0, 1.0),\n",
|
| 140 |
+
" 'Writer': (3.5, 0.0),\n",
|
| 141 |
+
" 'End': (5.0, 0.5)\n",
|
| 142 |
+
"}\n",
|
| 143 |
+
"\n",
|
| 144 |
+
"# Plot nodes\n",
|
| 145 |
+
"fig, ax = plt.subplots(figsize=(6, 3))\n",
|
| 146 |
+
"for node, (x, y) in positions.items():\n",
|
| 147 |
+
" circle = plt.Circle((x, y), 0.3, color='#c8e6c9', ec='black')\n",
|
| 148 |
+
" ax.add_patch(circle)\n",
|
| 149 |
+
" ax.text(x, y, node, horizontalalignment='center', verticalalignment='center')\n",
|
| 150 |
+
"\n",
|
| 151 |
+
"# Draw arrows between nodes\n",
|
| 152 |
+
"ax.annotate('', positions['Researcher'], positions['Start'], arrowprops=dict(arrowstyle='->', lw=2))\n",
|
| 153 |
+
"ax.annotate('', positions['Writer'], positions['Researcher'], arrowprops=dict(arrowstyle='->', lw=2))\n",
|
| 154 |
+
"ax.annotate('', positions['End'], positions['Writer'], arrowprops=dict(arrowstyle='->', lw=2))\n",
|
| 155 |
+
"\n",
|
| 156 |
+
"ax.set_xlim(0, 5.5)\n",
|
| 157 |
+
"ax.set_ylim(-1, 2)\n",
|
| 158 |
+
"ax.axis('off')\n",
|
| 159 |
+
"ax.set_title('Simple LangGraph Workflow')\n",
|
| 160 |
+
"plt.show()"
|
| 161 |
+
]
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"cell_type": "markdown",
|
| 165 |
+
"id": "8328fc0a",
|
| 166 |
+
"metadata": {},
|
| 167 |
+
"source": [
|
| 168 |
+
"## 4. Agentic AI for Leadership Excellence\n",
|
| 169 |
+
"\n",
|
| 170 |
+
"Traditional leadership focuses on **vision**, **strategy**, **communication** and **decision‑making**. Agentic AI can augment these skills by:\n",
|
| 171 |
+
"\n",
|
| 172 |
+
"- **Speed & Scalability**: AI agents can handle repetitive tasks and process large volumes of data, allowing leaders to focus on high‑value decisions【644505837552892†L386-L436】.\n",
|
| 173 |
+
"- **Enhanced Insight**: Research agents can gather information from various sources and summarise key points, enabling informed decisions.\n",
|
| 174 |
+
"- **Continuous Learning**: Agentic systems learn from feedback, improving over time and adapting to organisational needs.\n",
|
| 175 |
+
"- **New Roles & Skills**: Organisations may create roles such as **AI whisperer** to work alongside agentic systems【644505837552892†L386-L436】【164762978622591†L63-L68】.\n",
|
| 176 |
+
"\n",
|
| 177 |
+
"### Pakistan Context\n",
|
| 178 |
+
"\n",
|
| 179 |
+
"In Pakistan, many industries are exploring AI adoption – from healthcare to education. Agentic AI can help:\n",
|
| 180 |
+
"\n",
|
| 181 |
+
"- **Streamline workflows** in organisations with limited resources.\n",
|
| 182 |
+
"- **Improve transparency and accountability** by automating record‑keeping and providing audit trails.\n",
|
| 183 |
+
"- **Enhance collaboration** between departments through shared knowledge bases.\n",
|
| 184 |
+
"- **Develop local expertise** in AI and data science, enabling innovation across sectors.\n",
|
| 185 |
+
"\n",
|
| 186 |
+
"**Key takeaway**: Agentic AI should complement leadership rather than replace it. Leaders remain responsible for ethical decision‑making, guiding the system and ensuring fairness.\n"
|
| 187 |
+
]
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"cell_type": "markdown",
|
| 191 |
+
"id": "42a57221",
|
| 192 |
+
"metadata": {},
|
| 193 |
+
"source": [
|
| 194 |
+
"## 5. Hands‑On: Build a Simple Multi‑Agent Workflow with LangGraph\n",
|
| 195 |
+
"\n",
|
| 196 |
+
"Let's walk through a simple example using Python. We'll build a two‑agent system:\n",
|
| 197 |
+
"\n",
|
| 198 |
+
"1. **Researcher** – searches the web for key facts about a topic.\n",
|
| 199 |
+
"2. **Writer** – drafts a short blog post using the research.\n",
|
| 200 |
+
"\n",
|
| 201 |
+
"We'll orchestrate these agents using LangGraph. The code below demonstrates how to define the agents, connect them in a workflow, and run the system. Note that executing this cell requires `langgraph`, `langchain` and `duckduckgo-search` packages, and a local Ollama model for Llama 3. If these packages are not installed, you can still read through the code and understand how the system works.\n"
|
| 202 |
+
]
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"cell_type": "code",
|
| 206 |
+
"execution_count": null,
|
| 207 |
+
"id": "3007dec8",
|
| 208 |
+
"metadata": {
|
| 209 |
+
"hide_input": false
|
| 210 |
+
},
|
| 211 |
+
"outputs": [],
|
| 212 |
+
"source": [
|
| 213 |
+
"\n",
|
| 214 |
+
"# This code defines the shared state, agents, and workflow.\n",
|
| 215 |
+
"# You can run it if you have the required libraries installed.\n",
|
| 216 |
+
"\n",
|
| 217 |
+
"from typing import TypedDict, List\n",
|
| 218 |
+
"from langgraph.graph import StateGraph, END\n",
|
| 219 |
+
"from langchain_community.tools.ddg_search import DuckDuckGoSearchRun\n",
|
| 220 |
+
"from langchain_ollama import ChatOllama\n",
|
| 221 |
+
"from langchain_core.prompts import ChatPromptTemplate\n",
|
| 222 |
+
"\n",
|
| 223 |
+
"# ----- Shared State -----\n",
|
| 224 |
+
"class AgentState(TypedDict):\n",
|
| 225 |
+
" topic: str\n",
|
| 226 |
+
" research_data: List[str]\n",
|
| 227 |
+
" blog_post: str\n",
|
| 228 |
+
"\n",
|
| 229 |
+
"# ----- Researcher Agent -----\n",
|
| 230 |
+
"def researcher_node(state: AgentState):\n",
|
| 231 |
+
" topic = state[\"topic\"]\n",
|
| 232 |
+
" search = DuckDuckGoSearchRun()\n",
|
| 233 |
+
" try:\n",
|
| 234 |
+
" results = search.run(f\"key facts and latest news about {topic}\")\n",
|
| 235 |
+
" except Exception as e:\n",
|
| 236 |
+
" results = f\"Could not find data: {e}\"\n",
|
| 237 |
+
" # Update state with research\n",
|
| 238 |
+
" return {\"research_data\": state.get(\"research_data\", []) + [results]}\n",
|
| 239 |
+
"\n",
|
| 240 |
+
"# ----- Writer Agent -----\n",
|
| 241 |
+
"def writer_node(state: AgentState):\n",
|
| 242 |
+
" topic = state[\"topic\"]\n",
|
| 243 |
+
" data = state[\"research_data\"][-1] if state[\"research_data\"] else \"\"\n",
|
| 244 |
+
" llm = ChatOllama(model=\"llama3\", temperature=0.7)\n",
|
| 245 |
+
" prompt = ChatPromptTemplate.from_template(\n",
|
| 246 |
+
" \"\"\"You are a tech blog writer.\n",
|
| 247 |
+
"\"\n",
|
| 248 |
+
" \"Write a short, engaging blog post about \"{topic}\"\n",
|
| 249 |
+
"\"\n",
|
| 250 |
+
" \"based ONLY on the following research data:\n",
|
| 251 |
+
"\n",
|
| 252 |
+
"\"\n",
|
| 253 |
+
" \"{data}\n",
|
| 254 |
+
"\n",
|
| 255 |
+
"\"\n",
|
| 256 |
+
" \"Return just the blog post content.\"\"\"\n",
|
| 257 |
+
" )\n",
|
| 258 |
+
" chain = prompt | llm\n",
|
| 259 |
+
" response = chain.invoke({\"topic\": topic, \"data\": data})\n",
|
| 260 |
+
" return {\"blog_post\": response.content}\n",
|
| 261 |
+
"\n",
|
| 262 |
+
"# ----- Build the LangGraph -----\n",
|
| 263 |
+
"workflow = StateGraph(AgentState)\n",
|
| 264 |
+
"workflow.add_node(\"Researcher\", researcher_node)\n",
|
| 265 |
+
"workflow.add_node(\"Writer\", writer_node)\n",
|
| 266 |
+
"workflow.set_entry_point(\"Researcher\")\n",
|
| 267 |
+
"workflow.add_edge(\"Researcher\", \"Writer\")\n",
|
| 268 |
+
"workflow.add_edge(\"Writer\", END)\n",
|
| 269 |
+
"\n",
|
| 270 |
+
"# Compile the workflow\n",
|
| 271 |
+
"app = workflow.compile()\n",
|
| 272 |
+
"\n",
|
| 273 |
+
"# ----- Run the system -----\n",
|
| 274 |
+
"inputs: AgentState = {\n",
|
| 275 |
+
" \"topic\": \"The future of AI Agents\",\n",
|
| 276 |
+
" \"research_data\": [],\n",
|
| 277 |
+
" \"blog_post\": \"\",\n",
|
| 278 |
+
"}\n",
|
| 279 |
+
"result = app.invoke(inputs)\n",
|
| 280 |
+
"print(\"\n",
|
| 281 |
+
"--- Final Output ---\n",
|
| 282 |
+
"\")\n",
|
| 283 |
+
"print(result[\"blog_post\"])"
|
| 284 |
+
]
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"cell_type": "markdown",
|
| 288 |
+
"id": "e6dfebd2",
|
| 289 |
+
"metadata": {},
|
| 290 |
+
"source": [
|
| 291 |
+
"## 6. Responsible AI & Ethics\n",
|
| 292 |
+
"\n",
|
| 293 |
+
"When deploying agentic AI in leadership contexts, ethics must be front and centre. Key considerations include:\n",
|
| 294 |
+
"\n",
|
| 295 |
+
"- **Fairness & Bias** – AI systems must be monitored for bias and discrimination. Detecting and mitigating bias is crucial【644505837552892†L501-L512】.\n",
|
| 296 |
+
"- **Transparency** – Leaders should understand how decisions are made. Explainable AI helps build trust and accountability【644505837552892†L513-L515】.\n",
|
| 297 |
+
"- **Privacy & Consent** – Collecting data requires clear consent and responsible use【644505837552892†L519-L525】.\n",
|
| 298 |
+
"- **Accountability & Audit Trails** – Maintain logs and audit trails so actions taken by AI agents can be reviewed and audited【644505837552892†L501-L512】.\n",
|
| 299 |
+
"\n",
|
| 300 |
+
"Building agentic systems responsibly means establishing governance processes, involving diverse teams in design, and continuously monitoring outcomes.\n"
|
| 301 |
+
]
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"cell_type": "markdown",
|
| 305 |
+
"id": "8ab068fc",
|
| 306 |
+
"metadata": {},
|
| 307 |
+
"source": [
|
| 308 |
+
"## 7. Conclusion & Next Steps\n",
|
| 309 |
+
"\n",
|
| 310 |
+
"In this notebook you learned:\n",
|
| 311 |
+
"\n",
|
| 312 |
+
"- The difference between traditional automation and agentic AI.\n",
|
| 313 |
+
"- How multi‑agent systems allow specialised agents to collaborate using a shared state.\n",
|
| 314 |
+
"- Why agentic AI can enhance leadership excellence by speeding up decision‑making, scaling knowledge gathering, and promoting collaboration.\n",
|
| 315 |
+
"- How to design a simple two‑agent workflow with LangGraph (Researcher → Writer).\n",
|
| 316 |
+
"- The importance of responsible and ethical AI adoption.\n",
|
| 317 |
+
"\n",
|
| 318 |
+
"### Next Steps\n",
|
| 319 |
+
"\n",
|
| 320 |
+
"1. **Explore LangGraph & LangChain** – experiment with more complex workflows, add a *critic* agent or a *fact‑checker*.\n",
|
| 321 |
+
"2. **Integrate with your organisation** – identify repetitive decision processes that could benefit from agentic AI support.\n",
|
| 322 |
+
"3. **Stay informed** – follow developments in AI ethics and regulation.\n",
|
| 323 |
+
"4. **Educate your team** – encourage cross‑functional learning so teams can collaborate with AI systems effectively.\n",
|
| 324 |
+
"\n",
|
| 325 |
+
"Thank you for participating! Feel free to ask questions or propose discussion topics.\n"
|
| 326 |
+
]
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"cell_type": "markdown",
|
| 330 |
+
"id": "ad30748e",
|
| 331 |
+
"metadata": {},
|
| 332 |
+
"source": [
|
| 333 |
+
"## 8. References\n",
|
| 334 |
+
"\n",
|
| 335 |
+
"1. **Agentic AI capabilities and leadership roles** – *AlphaBOLD article: 'Agentic AI and the Rise of AI Whisperers in Leadership'*【644505837552892†L379-L383】【644505837552892†L386-L436】.\n",
|
| 336 |
+
"2. **Ethical and regulatory considerations** – *AlphaBOLD article*【644505837552892†L501-L512】【644505837552892†L519-L525】.\n",
|
| 337 |
+
"3. **Definition of Multi‑Agent Systems (MAS)** – *GeeksforGeeks: 'Multi Agent System in AI'*【82730657746531†L104-L110】.\n",
|
| 338 |
+
"4. **Agentic organisation paradigm** – *McKinsey: 'The agentic organization: Contours of the next paradigm for the AI era'*【378999429249588†L20-L25】【378999429249588†L77-L96】.\n",
|
| 339 |
+
"5. **Agentics and leadership roles** – *Tony Wood blog: 'Implementing Agentics and AI for Strategic Leadership Excellence'*【164762978622591†L34-L41】【164762978622591†L63-L68】.\n"
|
| 340 |
+
]
|
| 341 |
+
}
|
| 342 |
+
],
|
| 343 |
+
"metadata": {},
|
| 344 |
+
"nbformat": 4,
|
| 345 |
+
"nbformat_minor": 5
|
| 346 |
+
}
|