Agent inside Agent Teams with Structured Json output
Step1: Agent (Country Details Advisor Agent)
-------------------------------------
Your job is to find details of demography, population, date of independence on user input
{{$context.$agents.$self.$input.country}}
Output
{
"$schema":"http://json-schema.org/draft-07/schema#",
"title":"Sample Array Schema",
"type":"array",
"items":{
"type":"object",
"properties":{
"demography":{
"type":"array",
"items":{
"type":"string"
}
},
"population":{
"type":"number"
}
}
}
}
Step2: Agent Teams (MyFirst Agent Teams)
-------------------------------------
//use Agent
//We will give output of one agent to another agent/LLM
Your job is to read below variable values and then present in a nice tabular format
{{$context.$nodes.CALL_COUNTRY_AGENT.$input.country}}
{{$context.$nodes.CALL_COUNTRY_AGENT.$output.population}}
No comments:
Post a Comment