-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from speakeasy-sdks/speakeasy-sdk-regen-1682469599
chore: speakeasy sdk regeneration - Generate
- Loading branch information
Showing
14 changed files
with
365 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# commands | ||
|
||
## Overview | ||
|
||
Commands for generating content | ||
|
||
### Available Operations | ||
|
||
* [run](#run) - Run a command to generate an AI Output | ||
|
||
## run | ||
|
||
Run a command to generate an AI Output | ||
|
||
### Example Usage | ||
|
||
```typescript | ||
import { Jasper } from "@speakeasy-sdks/jasper-ai"; | ||
import { RunCommandResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations"; | ||
|
||
const sdk = new Jasper({ | ||
security: { | ||
apiKeyAuth: "YOUR_API_KEY_HERE", | ||
}, | ||
}); | ||
|
||
sdk.commands.run({ | ||
inputs: { | ||
command: "Write a haiku about rabbits", | ||
context: "All rabbits eat kale", | ||
}, | ||
options: { | ||
inputLanguage: "unde", | ||
languageFormality: "nulla", | ||
outputCount: 544883, | ||
outputLanguage: "illum", | ||
}, | ||
}).then((res: RunCommandResponse) => { | ||
if (res.statusCode == 200) { | ||
// handle response | ||
} | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Jasper SDK | ||
|
||
## Overview | ||
|
||
API for generating content | ||
|
||
### Available Operations | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# templates | ||
|
||
## Overview | ||
|
||
Templates for generating content | ||
|
||
### Available Operations | ||
|
||
* [get](#get) - Retrieve an individual default or custom template available in your workspace by ID | ||
* [list](#list) - Get a list of available templates | ||
* [run](#run) - Run a default template or custom template by ID to generate an AI output. See our guide on Using Templates for tips on getting started. | ||
|
||
## get | ||
|
||
Retrieve an individual default or custom template available in your workspace by ID | ||
|
||
### Example Usage | ||
|
||
```typescript | ||
import { Jasper } from "@speakeasy-sdks/jasper-ai"; | ||
import { GetTemplateResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations"; | ||
import { TemplateInputsTypeEnum } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/shared"; | ||
|
||
const sdk = new Jasper({ | ||
security: { | ||
apiKeyAuth: "YOUR_API_KEY_HERE", | ||
}, | ||
}); | ||
|
||
sdk.templates.get({ | ||
templateId: "vel", | ||
}).then((res: GetTemplateResponse) => { | ||
if (res.statusCode == 200) { | ||
// handle response | ||
} | ||
}); | ||
``` | ||
|
||
## list | ||
|
||
Get a list of available templates | ||
|
||
### Example Usage | ||
|
||
```typescript | ||
import { Jasper } from "@speakeasy-sdks/jasper-ai"; | ||
import { ListTemplatesResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations"; | ||
import { TemplateInputsTypeEnum } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/shared"; | ||
|
||
const sdk = new Jasper({ | ||
security: { | ||
apiKeyAuth: "YOUR_API_KEY_HERE", | ||
}, | ||
}); | ||
|
||
sdk.templates.list().then((res: ListTemplatesResponse) => { | ||
if (res.statusCode == 200) { | ||
// handle response | ||
} | ||
}); | ||
``` | ||
|
||
## run | ||
|
||
Run a default template or custom template by ID to generate an AI output. See our guide on Using Templates for tips on getting started. | ||
|
||
### Example Usage | ||
|
||
```typescript | ||
import { Jasper } from "@speakeasy-sdks/jasper-ai"; | ||
import { RunTemplateResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations"; | ||
|
||
const sdk = new Jasper({ | ||
security: { | ||
apiKeyAuth: "YOUR_API_KEY_HERE", | ||
}, | ||
}); | ||
|
||
sdk.templates.run({ | ||
requestBody: { | ||
inputs: { | ||
"deserunt": "suscipit", | ||
"iure": "magnam", | ||
"debitis": "ipsa", | ||
}, | ||
options: { | ||
inputLanguage: "delectus", | ||
languageFormality: "tempora", | ||
outputCount: 383441, | ||
outputLanguage: "molestiae", | ||
}, | ||
}, | ||
templateId: "minus", | ||
}).then((res: RunTemplateResponse) => { | ||
if (res.statusCode == 200) { | ||
// handle response | ||
} | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.