提示词库/让AI变成某个人/Structured Outputs for Multi-Agent Systems
Structured Outputs for Multi-Agent Systems
写进配置exp-0482未验证
# Structured Outputs for Multi-Agent Systems
In this cookbook, we will explore how to use Structured Outputs to build multi-agent systems.
Structured Outputs is a new capability that builds upon JSON mode and function calling to enforce a strict schema in a model output.
By using the new parameter `strict: true`, we are able to guarantee the response abides by a provided schema.
To demonstrate the power of this feature, we will use it to build a multi-agent system.
### Why build a Multi-Agent System?
When using function calling, if the number of functions (or tools) increases, the performance may suffer.
To mitigate this, we can logically group the tools together and have specialized "agents" that are able to solve specific tasks or sub-tasks, which will increase the overall system performance.