Hi
Use Case:
I am working a use case where i have a list of prompts(more like lnstructions )
user: "prompt 1\n
prompt 2\n
prompt 3"
also i have a list of actions defined on my side with different set of parameters for each action.
functions:[
{
name: "action1",
description: "<some description>",
parameters: {
type: "object",
properties: {
p1: {
type: "string",
description: "<desc>.",
},
},
{
name: "action2",
description: "<some description>",
parameters: {
type: "object",
properties: {
p1: {
type: "string",
description: "<desc>.",
},
p2: {
type: "string",
description: "<desc>.",
},
}
{
name: "action3",
description: "<some description>",
parameters: {
type: "object",
properties: {
p1: {
type: "string",
description: "<desc>.",
},
p2: {
type: "string",
description: "<desc>.",
},
p3: {
type: "string",
description: "<desc>.",
}
}]
Problem Statement:
Is it possible to use function calling api to perform action mapping for each prompt with an action and determine the parameters in one call?