Skip to content

Commit

Permalink
yarn pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Mar 26, 2024
1 parent 7e1043f commit e695e7c
Show file tree
Hide file tree
Showing 6 changed files with 324 additions and 0 deletions.
21 changes: 21 additions & 0 deletions generator/konfig-docs/src/pages/sdk/companies.json
Original file line number Diff line number Diff line change
Expand Up @@ -2870,6 +2870,27 @@
"difficultyScore": 10.75,
"subpath": "/sdk/validi-fi"
},
{
"parentCategories": [
"Artificial Intelligence"
],
"subCategories": [
"AI Tools"
],
"favicon": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/favicon.png",
"metaDescription": "Building the next evolution of actionable AI.",
"services": [],
"company": "InducedAI",
"keywords": [
"ai",
"developer_tools",
"browser_automation",
"browser_agent"
],
"numberOfApis": 1,
"difficultyScore": 8.75,
"subpath": "/sdk/induced-ai"
},
{
"parentCategories": [
"Content & Files"
Expand Down
69 changes: 69 additions & 0 deletions generator/konfig-docs/src/pages/sdk/induced-ai/index.tsx
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.`}
/>
)
}
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"
})
```
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 generator/konfig-docs/src/pages/sdk/induced-ai/typescript/index.tsx
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"
/>
);
}

15 changes: 15 additions & 0 deletions generator/konfig-docs/src/pages/sdk/sdk-links.json
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,21 @@
"subCategory": "AI Tools",
"apiVersion": "1.0"
},
{
"index": "induced-ai/typescript",
"link": "/sdk/induced-ai/typescript/",
"homepage": "induced.ai",
"categories": [
"ai",
"developer_tools",
"browser_automation",
"browser_agent"
],
"favicon": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/inducedai/favicon.png",
"parentCategory": "Artificial Intelligence",
"subCategory": "AI Tools",
"apiVersion": "1.0.0"
},
{
"index": "intelli-hr/typescript",
"link": "/sdk/intelli-hr/typescript/",
Expand Down

0 comments on commit e695e7c

Please sign in to comment.