Buildintermediate
45 min
Give Your AI a Tool
Your AI assistant can only make things up right now. Give it a `GetCurrentWeather(city: string)` tool so it can fetch (or simulate) live data when asked about the weather. Implement the full tool-use loop: define the schema, detect when the model wants to call it, execute the function, send the result back.
Your progress0%
Requirements
Skills you'll use
.NETOpenAI SDKFunction Calling
Read this first
This task is based on the lesson below. Complete the reading before attempting it.
Go to lessonWhat to expect
- Difficulty
- intermediate
- Time
- 45 min
- Steps
- 6
- Type
- Build