logoalt Hacker News

justusthane05/15/20251 replyview on HN

How does the library have access to the code that called it (in order to provide context to the LLM)?


Replies

cofob_05/15/2025

https://github.com/cofob/autogenlib/blob/e21405af47fe4c90af3...

The library uses python dirty tricks, in this case using call stack, where the library looks for code from the user, gets the name of the file and reads it.