marshal json automatically for some template values (#5758)

This commit is contained in:
Michael Yang
2024-07-17 15:35:11 -07:00
committed by GitHub
parent b23424bb3c
commit b255445557
8 changed files with 72 additions and 52 deletions

View File

@@ -46,7 +46,7 @@ Action: ```json
{{- range .ToolCalls }}
{
"tool_name": "{{ .Function.Name }}",
"parameters": {{ json .Function.Arguments }}
"parameters": {{ .Function.Arguments }}
}
{{- end }}
]```