fix type error in testOutputSchemaServers.ts
This commit is contained in:
parent
39b2f65434
commit
f470f0996b
1 changed files with 2 additions and 2 deletions
|
|
@ -69,9 +69,9 @@ async function main() {
|
|||
console.log(JSON.stringify(weatherResult.structuredContent, null, 2));
|
||||
}
|
||||
|
||||
if (weatherResult.content) {
|
||||
if (weatherResult.content && Array.isArray(weatherResult.content)) {
|
||||
console.log("Unstructured content:");
|
||||
weatherResult.content.forEach(content => {
|
||||
weatherResult.content.forEach((content: any) => {
|
||||
if (content.type === "text") {
|
||||
console.log(content.text);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue