3 ms·
How does the library have access to the code that called it (in order to provide context to the LLM)?
by justusthane 1y ago
How does the library have access to the code that called it (in order to provide context to the LLM)?
- cofob_ 1y agohttps://github.com/cofob/autogenlib/blob/e21405af47fe4c90af3c66f023286bd564eba670/autogenlib/_caller.py#L13 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.