Image of Lucian Ghinda writing for notes.ghinda.com
November 22nd, 2024

RBS inline code sample from Anycable example

I was reading this article Hey, AnyCable speaking! Needing help with a Twilio-OpenAI connection? by Vladimir Dementyev over last weekend and noticed an example of RBS inline usage:

Code sample showing usage of RBS Inline

That made me curious about how the tool configuration is created to be used by the other pieces of sofware.

Thus I browsed the source code and found inside https://github.com/anycable/twilio-ai-demo/blob/demo/rbs-tools an exciting combination of parsing RBS Inline with Prism to read method definitions and generate functions for LLM:

Code sample from RBSTools module that parses method signatures

Source: module RBSTools::MethodDecl - I like what Vladimir did here and the idea to parse the method signature to create LLM functions.Â