Update HTTP Request Tool to use $fromAI

The idea is:

The $fromAI() expression is superior to placeholders in every way and should be retrofitted into the HTTP request tool. To my understanding, the HTTP request tool is the only tool which uses placeholders.

My use case:

Typically, the most frustrating case is when the request body is a nested JSON and/or array value and the generated agent param needs to be injected into it.
The following example is an Agolio API request where “query” is the agent generated param. I’ve not managed to get the request to work.

{
  "requests": [
    {
      "indexName": "Zendesk 4-25",
      "params": "query={query_params}&hitsPerPage=5&page=0"
    }
  ]
}

I think it would be beneficial to add this because:

  • The HTTP tool is still a critical agent feature for APIs & services not yet (or won’t ever be) supported
  • Aligns UX and expectations with all others tools

Any resources to support this?

Similar issues reported:

Are you willing to work on this?

No but happy to take part in testing!