Skip to content

Commit

Permalink
Clean Up Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Nov 23, 2024
1 parent 11e32a0 commit a8b57a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ deno add jsr:@crosshatch/structured-outputs
import { ResponseFormat, T } from "structured-outputs"

// 1. Define the shape of the desired response.
const Character = T.struct({
const Character = T.object({
name: T.string,
age: T.number`Ensure between 1 and 110.`,
})
Expand Down Expand Up @@ -68,7 +68,7 @@ We can also attach a description to the response format.
### Dependency Injection

```ts
const Character = T.struct({
const Character = T.object({
name: T.string`Preferably names common to those who are {"national identity"}.`,
age: T.number`Ensure between 1 and 110.`,
})
Expand Down

0 comments on commit a8b57a7

Please sign in to comment.