kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
add links to genaiscript integration
rodzic
c64069cf9d
commit
59d9a8d8df
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
title: GenAIScript
|
||||||
|
description: Agentic support in GenAIScript.
|
||||||
|
---
|
||||||
|
|
||||||
|
- package: none necessary
|
||||||
|
- [GenAIScript Agentic docs](https://microsoft.github.io/genaiscript/getting-started/agentic-tools)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { calculator } from '@agentic/calculator'
|
||||||
|
defTool(calculator)
|
||||||
|
|
||||||
|
$`Answer the following arithmetic question: How much is 11 + 4? then divide by 3?`
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running this example
|
||||||
|
|
||||||
|
<Info>
|
||||||
|
You'll need an [OpenAI API key](https://platform.openai.com/docs/quickstart)
|
||||||
|
to run this example. Store it in a local `.env` file as `OPENAI_API_KEY`.
|
||||||
|
</Info>
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone git@github.com:transitive-bullshit/agentic.git
|
||||||
|
cd agentic
|
||||||
|
pnpm install
|
||||||
|
echo 'OPENAI_API_KEY=your-key' >> .env
|
||||||
|
npx genaiscript examples/genaiscript/calculator.genai.mts
|
||||||
|
```
|
|
@ -0,0 +1,4 @@
|
||||||
|
import { calculator } from '@agentic/calculator'
|
||||||
|
defTool(calculator)
|
||||||
|
|
||||||
|
$`Answer the following arithmetic question: How much is 11 + 4? then divide by 3?`
|
|
@ -139,6 +139,10 @@ Full docs are available at [agentic.so](https://agentic.so).
|
||||||
|
|
||||||
[Agentic adapter docs for OpenAI](https://agentic.so/sdks/openai)
|
[Agentic adapter docs for OpenAI](https://agentic.so/sdks/openai)
|
||||||
|
|
||||||
|
### GenAIScript
|
||||||
|
|
||||||
|
[Agentic support in GenAIScript](https://agentic.so/sdks/genaiscript)
|
||||||
|
|
||||||
## Tools
|
## Tools
|
||||||
|
|
||||||
| Service / Tool | Package | Docs | Description |
|
| Service / Tool | Package | Docs | Description |
|
||||||
|
|
Ładowanie…
Reference in New Issue