talk-data.com talk-data.com

Filter by Source

Select conferences and events

People (1 result)

Showing 4 results

Activities & events

Title & Speakers Event

How to build, refactor, and extend your own agents - Alexey Grigorev

​Join us for a hands-on walkthrough of building a chat assistant powered by OpenAI’s function calling, led by Alexey Grigorev. This live session focuses on understanding the code behind agent-like assistants.

​During a previous workshop, Alexey demoed how to build such an assistant quickly. This time, we’ll slow down, go deeper, explaining the code line by line, refactoring it into a reusable library. We will also go over the MCP protocol and create a simple MCP client from scratch.

​By the end, you’ll better understand how this assistant works and gain a solid foundation to extend the same setup in your projects.

​What You'll Learn

  • ​How OpenAI function calling works in practice
  • ​Building a basic assistant in Jupyter, step by step
  • ​Refactoring assistant logic into a clean, reusable Python class
  • ​Extending function calling with MCP

​It will be a live demo with practical tips and a chance to ask your questions. ​ ​Thinking About LLM Zoomcamp? ​This workshop is part of the things and projects we do at LLM Zoomcamp, a free online course about real-life applications of LLMs. In 10 weeks, you will learn how to build an AI system that answers questions about your knowledge base. ​The course is now live. You can join it by registering here. ​ ​About the SpeakerAlexey Grigorev is the Founder of DataTalks.Club and creator of the Zoomcamp series. ​Alexey is a seasoned software and ML engineer with over 10 years in engineering and 6+ years in machine learning. He has deployed large-scale ML systems at companies like OLX Group and Simplaex, authored several technical books including Machine Learning Bookcamp, and is a Kaggle Master with a 1st place finish in the NIPS'17 Criteo Challenge. ​

Join our slack: https://datatalks.club/slack.html

Build Agentic Assistants with OpenAI Function Calling: Part 2

Our snake eats and grows. The lesson follows these steps:

  1. a very brief recap and explanation of the current code (as a reminder and a brief introduction for anybody joining the course for the first time)
  2. we create a Food class, a red square randomly placed on the screen
  3. we extend our Snake class so that the snake can eat some food and grow (increase its length)
  4. when the snake eats the food, we increase its length by one square and it makes an eating sound.

We write some functions to draw the food and to check if the the snake collides with the food.

That's as far as we implement our game in the six week series. To conclude, we ask the AI assistant, in its role as an expert Python coach, to suggest ways to refactor the code and how to extend the functionality of the game

We finish with a recap of what we've learnt over the six week course. This includes some final thoughts about how well the AI assistant has helped us in our coding journey, and what this implies for the sort of (human) skills needed over the next few years.

Full details on the six week course here.

Python Foundation Course (Session 6 of 6) - Final touches.

Lesson 2 focuses on conditional flow in Python - using the while, for and if-elif-else keywords. It also introduces variables, constants, datatypes, the input() and print() functions. It also covers using pygame and some of its functions and methods.

We use the Python code at the end of lesson 1 as a starting point. We will create the main game loop so that our snake game can listen to events, act on some of them, and only exit when the user presses the close button on the window.

In this session, we get the snake to change colour when certain keys are pressed. That introduces responding to user input. In the next session the snake will start moving!

For full details about this lesson, click here.

Python Foundation Course (Session 2 of 6)

Update: If you would like a head start, this YouTube video is a 10 minute demo of what we'll be doing in this lesson.

This is a hands-on tutorial-style foundation course in Python course over six Monday evenings. It is suitable for beginners and people who have not coded before. Over the six weeks, we design and code the snake game step by step. This is an online (on Teams) course.

The best way to learn Python is to write a classic game such as snake. This may seem a frivolous exercise compared to a more serious use case of, for example, data analysis. However, writing a game like this one forces us almost immediately to use many of the features of the language. We hope this will more fun and interesting than a more traditional approach, and more relevant especially to people who have not coded before.

In the course, we start by creating variables and constants to set up our screen and snake. We implement our snake firstly as a single square then later as a Python data structure (a list of tuples). We use list methods, such as append and pop, to create our snake. To keep our code organised and readable, we create a Snake class so that our snake can move and eat. We use looping, (with the for and while keywords) so that the snake responds to our key presses and conditional flow (with the if keyword) so that it eats and grows when it finds food. We learn how to install and import packages such as the pygame package that provides the basic 2D game functionality.

This is the first time we have run this course - expect a few bumps along the way.

The provisional timetable looks like this

2nd June: Session 1 - Setup Install Python and the VSCode editor on a laptop, then create a Python environment, install some packages and write/run a tiny script to prove everything is set up properly.

9th June: Session 2 - our snake responds to user input We'll review the code in Session 1. This sets up our game and our snake is only a single square and does not move yet. We get our snake to change colours and to move up / down / left / right a single square when the user presses the arrow keys on the keyboard.

This covers these Python topics: the while and for loops, invoking functions, the basic structure of a Python program.

16th June: Session 3 - move like a snake We get our snake to change colours and to move more like a snake e.g. the snake moves at a constant speed, and the arrow keys control the direction but does not allow reversing.

This covers these Python topics: the if-elif-else code block, tuples, data types

23rd June: Session 4 - from a square to a snake Our snake literally takes shape and behaves more like the classic snake in the game. The game stops if the snake moves off the screen.

This covers these Python topics: lists, dictionaries, writing functions.

2nd July: Session 5 - our snake eats and grows Note: this is on a Wednesday rather than Monday The snake eats food and grows when it does.

This covers these Python topics: introduction to classes and object oriented programming.

7th July: Session 6 - applying the rules The game ends when the snake leaves the screen or collides with itself. If time allows we may implement a score.

This covers these Python topics: more about classes, organising code into modules

Python Foundation Course (Session 1 of 6)
Showing 4 results