GPT-6.1 Terra with Microsoft Agent Framework: A PDF Invoice Agent in C
In the GPT-6.1 Terra post , I built an invoice agent with nothing but HttpClient . It reads a PDF invoice, calls a C# function to check the supplier, and returns a structured result that lands in a C# record. Doing it by hand meant writing the JSON, the tool loop, the response chaining and the schema myself. That was the point: you could see every byte that goes to the Responses API.
This post builds the same agent with Microsoft Agent Framework. Same model, same PDF, same tool, same record. The framework writes the JSON, runs the tool loop and builds the schema, so the sample drops from about 320 lines to 136.
It isn't free, though.…