chatgpt-api/docs/tools/wolfram-alpha.mdx

37 wiersze
845 B
Plaintext
Czysty Zwykły widok Historia

2024-08-07 02:19:51 +00:00
---
title: Wolfram Alpha
description: Wolfram Alpha LLM API client for answering computational, mathematical, and scientific questions.
---
- package: `@agentic/wolfram-alpha`
- exports: `class WolframAlphaClient`, `namespace wolframalpha`
- env vars: `WOLFRAM_APP_ID`
- [source](https://github.com/transitive-bullshit/agentic/blob/main/packages/wolfram-alpha/src/wolfram-alpha-client.ts)
2024-08-17 11:03:17 +00:00
- [wolfram alpha api docs](https://products.wolframalpha.com/llm-api/documentation)
2024-08-07 02:19:51 +00:00
## Install
<CodeGroup>
```bash npm
npm install @agentic/wolfram-alpha
```
```bash yarn
yarn add @agentic/wolfram-alpha
```
```bash pnpm
pnpm add @agentic/wolfram-alpha
```
</CodeGroup>
## Usage
```ts
import { WolframAlphaClient } from '@agentic/wolfram-alpha'
const wolframAlpha = new WolframAlphaClient()
const res = await wolframAlpha.search('latest news')
```