How to make a function call and get a textual response at the same time?

Yep, this is the key point.

There’s more than one layer here.

  1. What the user sees
  2. The to-and-fro between your logic and the LLM

The user does not need to be aware of the to-and-fro part.

Making the to-and-fro part simple so each “message” serves one purpose is, imho a strength as it makes the logic easier and clearer to write.

1 Like