Can we use API that is defined in query library?
Right now we can only invoke workflows, which is billed more >5000 runs
Also, in custom tool I am unable to change "REST API" to other resource type.
Can we use API that is defined in query library?
Right now we can only invoke workflows, which is billed more >5000 runs
Also, in custom tool I am unable to change "REST API" to other resource type.
Hi @qinfeng! This is a great question. Right now, you can't call queries directly from your query library, but you can create any query you'd like as a function in a custom tool, which can be reused by any and all of your agents if you'd like.
Also, I asked around and looked into it, and even though the edit function IDE looks like a workflow, it's not a workflow. So, as it stands, you can create custom tools and use them without worrying about being billed for workflow runs. However, keep in mind that if you're adding a new tool to your agent and you select "Use workflow" - that is still a workflow.
Lastly, you should be able to use whatever resource you'd like in the function block. If you're having issues, try creating a new block, or message the function generator chat bot for what you're looking to build.
I'm just going to add in here to be really clear, using custom tools only counts towards agent run time, whereas workflows count towards agent run time and billable workflow runs. Here is a reference to the billing docs on this.