From 7193564cc21500f5f8fd88be035f79920a8a9df4 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
 <142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 12 Aug 2024 19:46:09 +0000
Subject: [PATCH] chore(examples): minor formatting changes (#491)

---
 tests/api-resources/messages.test.ts | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/api-resources/messages.test.ts b/tests/api-resources/messages.test.ts
index c6e76bea..99a74f80 100644
--- a/tests/api-resources/messages.test.ts
+++ b/tests/api-resources/messages.test.ts
@@ -12,7 +12,7 @@ describe('resource messages', () => {
   test('create: only required params', async () => {
     const responsePromise = client.messages.create({
       max_tokens: 1024,
-      messages: [{ role: 'user', content: 'Hello, world' }],
+      messages: [{ content: 'Hello, world', role: 'user' }],
       model: 'claude-3-5-sonnet-20240620',
     });
     const rawResponse = await responsePromise.asResponse();
@@ -27,18 +27,16 @@ describe('resource messages', () => {
   test('create: required and optional params', async () => {
     const response = await client.messages.create({
       max_tokens: 1024,
-      messages: [{ role: 'user', content: 'Hello, world' }],
+      messages: [{ content: 'Hello, world', role: 'user' }],
       model: 'claude-3-5-sonnet-20240620',
       metadata: { user_id: '13803d75-b4b5-4c3e-b2a2-6f21399b021b' },
       stop_sequences: ['string', 'string', 'string'],
       stream: false,
-      system: [{ type: 'text', text: "Today's date is 2024-06-01." }],
+      system: [{ text: "Today's date is 2024-06-01.", type: 'text' }],
       temperature: 1,
       tool_choice: { type: 'auto' },
       tools: [
         {
-          description: 'Get the current weather in a given location',
-          name: 'x',
           input_schema: {
             type: 'object',
             properties: {
@@ -46,10 +44,10 @@ describe('resource messages', () => {
               unit: { description: 'Unit for the output - one of (celsius, fahrenheit)', type: 'string' },
             },
           },
+          name: 'x',
+          description: 'Get the current weather in a given location',
         },
         {
-          description: 'Get the current weather in a given location',
-          name: 'x',
           input_schema: {
             type: 'object',
             properties: {
@@ -57,10 +55,10 @@ describe('resource messages', () => {
               unit: { description: 'Unit for the output - one of (celsius, fahrenheit)', type: 'string' },
             },
           },
+          name: 'x',
+          description: 'Get the current weather in a given location',
         },
         {
-          description: 'Get the current weather in a given location',
-          name: 'x',
           input_schema: {
             type: 'object',
             properties: {
@@ -68,6 +66,8 @@ describe('resource messages', () => {
               unit: { description: 'Unit for the output - one of (celsius, fahrenheit)', type: 'string' },
             },
           },
+          name: 'x',
+          description: 'Get the current weather in a given location',
         },
       ],
       top_k: 5,