aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/testdata/TestOnlyStructuredOutputs.llm.json
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-02-09 20:39:59 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-02-10 09:25:14 +0000
commit1493dbbe8ff1f861facc19778e2597b106cf8924 (patch)
treed08ec8412f6b651c09b7a1aad169ee2c6ffebbe1 /pkg/aflow/testdata/TestOnlyStructuredOutputs.llm.json
parent0a252025e4a9708b8565b0d633a394e9789a2877 (diff)
pkg/aflow: make it possible for LLMAgent to return only structured outputs
In some cases there may be not final text reply, only some structured outputs (e.g. some bool). Don't require final reply, if structured outputs are specified.
Diffstat (limited to 'pkg/aflow/testdata/TestOnlyStructuredOutputs.llm.json')
-rw-r--r--pkg/aflow/testdata/TestOnlyStructuredOutputs.llm.json65
1 files changed, 65 insertions, 0 deletions
diff --git a/pkg/aflow/testdata/TestOnlyStructuredOutputs.llm.json b/pkg/aflow/testdata/TestOnlyStructuredOutputs.llm.json
new file mode 100644
index 000000000..c9776f4ae
--- /dev/null
+++ b/pkg/aflow/testdata/TestOnlyStructuredOutputs.llm.json
@@ -0,0 +1,65 @@
+[
+ {
+ "Model": "model",
+ "Config": {
+ "systemInstruction": {
+ "parts": [
+ {
+ "text": "Instructions\n\nUse set-results tool to provide results of the analysis.\nIt must be called exactly once before the final reply.\nIgnore results of this tool.\n"
+ }
+ ],
+ "role": "user"
+ },
+ "temperature": 0.3,
+ "tools": [
+ {
+ "functionDeclarations": [
+ {
+ "description": "Use this tool to provide results of the analysis.",
+ "name": "set-results",
+ "parametersJsonSchema": {
+ "additionalProperties": false,
+ "properties": {
+ "Result": {
+ "description": "Result",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "Result"
+ ],
+ "type": "object"
+ },
+ "responseJsonSchema": {
+ "additionalProperties": false,
+ "properties": {
+ "Result": {
+ "description": "Result",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "Result"
+ ],
+ "type": "object"
+ }
+ }
+ ]
+ }
+ ],
+ "responseModalities": [
+ "TEXT"
+ ]
+ },
+ "Request": [
+ {
+ "parts": [
+ {
+ "text": "Initial Prompt"
+ }
+ ],
+ "role": "user"
+ }
+ ]
+ }
+] \ No newline at end of file