https://www.boundaryml.com logo
Is it possible to inject the tools dynamically in ...
# help
s
GenerateCode(input: GenerateCodeRequest, conversation_history: Message[]) -> GenerateCodeResponse | AskUserQuestion I saw the example in the doc but it a single schema which has the response and tool calls. I want to keep actual response and tool calls separate. Like GenerateCodeResponse | AskUserQuestion In general, the docs are not fully reflecting the Golang SDK
v
yes! type builder should do this 🙂
(apologies for docs being out of date on there)
let me get you docs real quick
if you point your agent at this, it should be able to fire up!
s
Thanks. I saw tests, seems like I have to change the return signature of the baml function to somethinking like this GenerateCode(input: GenerateCodeRequest, conversation_history: Message[]) -> DynamicOutput and then dynamically add a property which could be either GenerateCodeResponse or AskUserQuestion.
v
yep!
that would be the way to do this 🙂
2 Views