-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
324 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import React from 'react'; | ||
import { Company } from '../../../components/Company'; | ||
|
||
const sdks = [ | ||
{ | ||
"name": "InducedAI", | ||
"numberOfMethods": 6, | ||
"categories": [ | ||
"ai", | ||
"developer_tools", | ||
"browser_automation", | ||
"browser_agent" | ||
], | ||
"index": "induced-ai/typescript", | ||
"language": "TypeScript", | ||
"link": "/sdk/induced-ai/typescript/", | ||
"developerDocumentation": "docs.induced.ai/introduction", | ||
"openapiGitHubUi": "https://github.com/konfig-sdks/openapi-examples/tree/HEAD/inducedai/openapi.yaml" | ||
}, | ||
{ | ||
"name": "InducedAI", | ||
"numberOfMethods": 6, | ||
"categories": [ | ||
"ai", | ||
"developer_tools", | ||
"browser_automation", | ||
"browser_agent" | ||
], | ||
"index": "induced-ai/python", | ||
"language": "Python", | ||
"link": "/sdk/induced-ai/python/", | ||
"developerDocumentation": "docs.induced.ai/introduction", | ||
"openapiGitHubUi": "https://github.com/konfig-sdks/openapi-examples/tree/HEAD/inducedai/openapi.yaml" | ||
}, | ||
{ | ||
"name": "InducedAI", | ||
"numberOfMethods": 6, | ||
"categories": [ | ||
"ai", | ||
"developer_tools", | ||
"browser_automation", | ||
"browser_agent" | ||
], | ||
"index": "induced-ai/java", | ||
"language": "Java", | ||
"link": "/sdk/induced-ai/java/", | ||
"developerDocumentation": "docs.induced.ai/introduction", | ||
"openapiGitHubUi": "https://github.com/konfig-sdks/openapi-examples/tree/HEAD/inducedai/openapi.yaml" | ||
} | ||
]; | ||
|
||
export default function InducedAi() { | ||
const allCategories: string[] = Array.from( | ||
new Set(sdks.flatMap((service) => service.categories)), | ||
) | ||
return ( | ||
<Company | ||
company="InducedAI" | ||
previewLinkImage="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/imagePreview.jpg" | ||
logo="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/logo.png" | ||
favicon="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/favicon.png" | ||
sdks={sdks} | ||
homepage="induced.ai" | ||
companyKebabCase="induced-ai" | ||
categories={allCategories} | ||
metaDescription={`Building the next evolution of actionable AI.`} | ||
/> | ||
) | ||
} |
6 changes: 6 additions & 0 deletions
6
generator/konfig-docs/src/pages/sdk/induced-ai/typescript/_first-request.mdx
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,6 @@ | ||
```typescript index.ts | ||
// Execute an Autonomous Task | ||
const executeResponse = inducedAi.task.execute({ | ||
task: "Go to google and search for Elon Musk" | ||
}) | ||
``` |
7 changes: 7 additions & 0 deletions
7
generator/konfig-docs/src/pages/sdk/induced-ai/typescript/_getting-started.mdx
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,7 @@ | ||
```typescript index.ts | ||
import { InducedAi } from 'induced-ai-typescript-sdk'; | ||
|
||
const inducedAi = new InducedAi({ | ||
apiKeyAuth: "X_API_KEY" | ||
}) | ||
``` |
206 changes: 206 additions & 0 deletions
206
generator/konfig-docs/src/pages/sdk/induced-ai/typescript/index.tsx
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,206 @@ | ||
import React from "react"; | ||
import { HttpMethodsEnum } from "konfig-lib/dist/forEachOperation"; | ||
// @ts-ignore | ||
import GettingStarted from "./_getting-started.mdx"; | ||
// @ts-ignore | ||
import FirstRequest from "./_first-request.mdx" | ||
import { SdkNew } from "@site/src/components/SdkNew"; | ||
|
||
export default function InducedAiTypeScriptSdk() { | ||
return ( | ||
<SdkNew | ||
sdkName="induced-ai-typescript-sdk" | ||
metaDescription={`Building the next evolution of actionable AI.`} | ||
company="InducedAI" | ||
// Missing serviceName | ||
logo="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/logo.png" | ||
companyKebabCase="induced-ai" | ||
clientNameCamelCase="inducedAi" | ||
homepage="induced.ai" | ||
lastUpdated={new Date("2024-03-26T07:55:59.525Z")} | ||
faviconUrl="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/favicon.png" | ||
// Missing contactUrl | ||
// Missing contactEmail | ||
previewLinkImage="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/imagePreview.jpg" | ||
GettingStarted={GettingStarted} | ||
FirstRequest={FirstRequest} | ||
categories={["ai","developer_tools","browser_automation","browser_agent"]} | ||
methods={[ | ||
{ | ||
"url": "/autonomous", | ||
"method": "execute", | ||
"httpMethod": HttpMethodsEnum.POST, | ||
"tag": "Task", | ||
"typeScriptTag": "task", | ||
"description": "Execute an Autonomous Task", | ||
"parameters": [ | ||
{ | ||
"name": "task", | ||
"schema": "string", | ||
"description": "", | ||
"example": "Go to google and search for Elon Musk" | ||
} | ||
], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/autonomous/{id}", | ||
"method": "getResult", | ||
"httpMethod": HttpMethodsEnum.GET, | ||
"tag": "Autonomous", | ||
"typeScriptTag": "autonomous", | ||
"description": "Get Autonomous Task Result", | ||
"parameters": [ | ||
{ | ||
"name": "id", | ||
"schema": "string", | ||
"required": true, | ||
"description": "", | ||
"example": "ID" | ||
} | ||
], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/autonomous/{id}/stop", | ||
"method": "terminateTask", | ||
"httpMethod": HttpMethodsEnum.POST, | ||
"tag": "Autonomous", | ||
"typeScriptTag": "autonomous", | ||
"description": "Stop an Autonomous Task", | ||
"parameters": [ | ||
{ | ||
"name": "id", | ||
"schema": "string", | ||
"required": true, | ||
"description": "", | ||
"example": "ID" | ||
} | ||
], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "Task stopped successfully" | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/autonomous/{id}/feedback", | ||
"method": "submission", | ||
"httpMethod": HttpMethodsEnum.POST, | ||
"tag": "Feedback", | ||
"typeScriptTag": "feedback", | ||
"description": "Provide Feedback for an Autonomous Task", | ||
"parameters": [ | ||
{ | ||
"name": "id", | ||
"schema": "string", | ||
"required": true, | ||
"description": "", | ||
"example": "ID" | ||
}, | ||
{ | ||
"name": "feedback", | ||
"schema": "boolean", | ||
"description": "" | ||
} | ||
], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "Feedback received successfully" | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/extract", | ||
"method": "fromUrl", | ||
"httpMethod": HttpMethodsEnum.POST, | ||
"tag": "Extraction", | ||
"typeScriptTag": "extraction", | ||
"description": "Extract data from a URL", | ||
"parameters": [ | ||
{ | ||
"name": "url", | ||
"schema": "string", | ||
"description": "" | ||
}, | ||
{ | ||
"name": "query", | ||
"schema": "string", | ||
"description": "" | ||
}, | ||
{ | ||
"name": "columns", | ||
"schema": "string", | ||
"description": "" | ||
}, | ||
{ | ||
"name": "limit", | ||
"schema": "integer", | ||
"description": "" | ||
}, | ||
{ | ||
"name": "format", | ||
"schema": "string", | ||
"description": "" | ||
} | ||
], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/extract/{id}", | ||
"method": "getResult", | ||
"httpMethod": HttpMethodsEnum.GET, | ||
"tag": "Extraction", | ||
"typeScriptTag": "extraction", | ||
"description": "Get extraction result", | ||
"parameters": [ | ||
{ | ||
"name": "id", | ||
"schema": "string", | ||
"required": true, | ||
"description": "", | ||
"example": "ID" | ||
} | ||
], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
language="TypeScript" | ||
apiTitle="Autonomous API" | ||
apiBaseUrl="https://api.induced.ai/api/v1" | ||
apiVersion="1.0.0" | ||
endpoints={6} | ||
sdkMethods={6} | ||
schemas={7} | ||
parameters={11} | ||
difficulty="Very Easy" | ||
openApiRaw="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/openapi.yaml" | ||
openApiGitHubUi="https://github.com/konfig-sdks/openapi-examples/tree/HEAD/inducedai/openapi.yaml" | ||
developerDocumentation="docs.induced.ai/introduction" | ||
/> | ||
); | ||
} | ||
|
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