open-index/open-npm huggingface dataset:
npm package: @microfox/agent-kit
Description: Interconnecting agents with multiple platforms for communication and data exchange.
Latest version: 0.3.0

# @microfox/agent-connector

// `// const response = agentConnector.receiveEvents({})
//`

// askForApproval -> sends a message somehwere with job_id, & type=approval, ->
// selectAnOption -> sends a message somewhere with job_id, & type=select_option, ->

// task_status -> in_queue, in_progress, awaiting_input, completed, failed, cancelled, unknown

// does vercel crons work in our deployment?

// modify_task, update_task, delete_task,

// notification/user_input-approvals/selection/query - where/who - collection

// test success - ask pramod, if he's avialble on tuesday.
// job -
// step 1 - get pramod's userId & DM channel id, (intelligence decides whether to ask for selection/confirmation)
// step 2 - send a message to him. (intelligence decides whether to ask for approval)
// step 3 - (create a job, if he responds, respond back to origin user)

Slack Internal Meeting Scheduler.

1. Hi pramod, are you available for a call with subhakar on tuesday
2. intelligence to follow up if pramod does not respond within 8hrs.
3. intelligence to contact on another platform if he still does not respond.
4. process data collected and continue with existing job (adding on a message to the job message queue)
5. maybe i should shedule a meeting, but i need to know what time, let me confirm with bothe of them for an accurate time. or maybe meeting is not needed, lets ask the initiator - subhakar
6. subhakar, shall i schedule a meeting, what time is comfortable for you ? with buttons (not needed, morning, afternoon, evening, night, exact time)
7. process data collected, if not needed - mark job as complete

Slack External Meeting
npm package: @microfox/ai
Description: Wrapper for AI SDK by Vercel - Only for Internal use of microfox ai packages
Latest version: 1.2.1

> **Note:** This package is deprecated and will no longer be maintained. Please consider using an alternative.

![hero illustration](./assets/hero.gif)

# AI SDK

The [AI SDK](https://ai-sdk.dev/docs) is a TypeScript toolkit designed to help you build AI-powered applications using popular frameworks like Next.js, React, Svelte, Vue and runtimes like Node.js.

To learn more about how to use the AI SDK, check out our [API Reference](https://ai-sdk.dev/docs/reference) and [Documentation](https://ai-sdk.dev/docs).

## Usage

### AI SDK Core

The [AI SDK Core](https://ai-sdk.dev/docs/ai-sdk-core/overview) module provides a unified API to interact with model providers like [OpenAI](https://ai-sdk.dev/providers/ai-sdk-providers/openai), [Anthropic](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic), [Google](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai), and more.

###### @/index.ts (Node.js Runtime)

```ts
import { generateText } from '@microfox/ai';
import { OpenAiProvider } from '@microfox/ai-provider-openai';

const openai = new OpenAiProvider({
  apiKey: process.env.OPENAI_API_KEY!,
});

const { text } = await generateText({
  model: openai.languageModel('gpt-4o'),
  system: 'You are a friendly assistant!',
  prompt: 'Why is the sky blue?',
});

console.log(text);
```
npm package: @microfox/ai-agent
Description: A TypeScript SDK for Ai Agent.
Latest version: 1.0.0

# Ai Agent

<!-- Add your project description here -->
A TypeScript SDK for Ai Agent.

## Installation

```bash
npm install @microfox/ai-agent
```

## Quick Start

```typescript
import { ${className} } from '@microfox/ai-agent';

// Initialize the SDK
const sdk = new ${className}({
  apiKey: 'your-api-key',
  // Add other config options
});

// Example usage
const result = await sdk.hello('World');
console.log(result.data);
```

## Configuration

```typescript
interface ${className}Config {
  apiKey: string;        // Required: Your API key
  baseUrl?: string;      // Optional: Custom base URL
  name?: string;         // Optional: SDK instance name
  version?: string;      // Optional: API version
}
```

## Methods

### hello(name: string)

Example method - replace with your own API methods.

```typescript
const result = await sdk.hello('World');
// Returns: { data: "Hello, World!", success: true, status: 200, message: "Success" }
```

<!-- 
## TODO: Add your API documentation here

### getData(id: string)
```typescript
const data = await sdk.getData('123');
```

### createItem(item: object)
```typescript
const result = await sdk.createItem({ name: 'Example' });
```
-->

## Development

```bash
# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Lint code
npm run lint
```

## License

MIT
npm package: @microfox/ai-code
Description: A TypeScript SDK for Ai Code.
Latest version: 1.1.2

# Ai Agent

<!-- Add your project description here -->
A TypeScript SDK for Ai Code.

## Installation

```bash
npm install @microfox/ai-code
```

## Quick Start

```typescript
import { ${className} } from '@microfox/ai-code';

// Initialize the SDK
const sdk = new ${className}({
  apiKey: 'your-api-key',
  // Add other config options
});

// Example usage
const result = await sdk.hello('World');
console.log(result.data);
```

## Configuration

```typescript
interface ${className}Config {
  apiKey: string;        // Required: Your API key
  baseUrl?: string;      // Optional: Custom base URL
  name?: string;         // Optional: SDK instance name
  version?: string;      // Optional: API version
}
```

## Methods

### hello(name: string)

Example method - replace with your own API methods.

```typescript
const result = await sdk.hello('World');
// Returns: { data: "Hello, World!", success: true, status: 200, message: "Success" }
```

<!-- 
## TODO: Add your API documentation here

### getData(id: string)
```typescript
const data = await sdk.getData('123');
```

### createItem(item: object)
```typescript
const result = await sdk.createItem({ name: 'Example' });
```
-->

## Development

```bash
# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Lint code
npm run lint
```

## License

MIT
npm package: @microfox/ai-provider-anthropic
Description: A Wrapped Anthropic AI Provider for Vercels AI SDK
Latest version: 1.3.1

> **Note:** This package is deprecated and will no longer be maintained. Please consider using an alternative.

# Anthropic Provider for Vercel's AI SDK

A TypeScript SDK for interacting with Anthropic's Claude API, providing a convenient wrapper around the official Anthropic SDK.

## Installation

```bash
npm install @microfox/ai-provider-anthropic
```

## Usage

### Text Generation

```typescript
import { AnthropicAiProvider } from '@microfox/ai-provider-anthropic';
import { generateText } from 'ai';

// Initialize the provider with your API key
const anthropic = new AnthropicAiProvider({
  apiKey: process.env.ANTHROPIC_API_KEY!,
});

// Use the language model
const { text } = await generateText({
  model: anthropic.languageModel('claude-3-opus-20240229'),
  prompt: 'Hello, world!',
});

console.log(text);
```

### Streaming Text Generation

```typescript
import { AnthropicAiProvider } from '@microfox/ai-provider-anthropic';
import { streamText } from 'ai';

const anthropic = new AnthropicAiProvider({
  apiKey: process.env.ANTHROPIC_API_KEY!,
});

const { textStream } = await streamText({
  model: anthropic.languageModel('claude-3-opus-20240229'),
  prompt: 'Tell me a story about a robot who dreams of becoming a chef.',
});

for await (const chunk of textStream) {
  process.stdout.write(chunk);
}
```

## Configuration Options

### AnthropicProvider Options

```typescript
interface AnthropicAiProviderConfig {
  apiKey: string;
  baseURL?: string;
  headers?: Record<string, string>;
}
```

### Model Options

You can pass model-specific options to the `generateText` and `streamText` functions.

#### Language Models

- `claude-3-opus-20240229`
- `claude-3-sonnet-20240229`
- `claude-3-haiku-20240307`
- `claude-2.1`
- `claude-2.0`
- `claude-instant-1.2`

Additional settings like `maxTokens`, `temperature`, `topP`, `topK`, and `stopSequences` can be passed as parameters.

## Error Handling

The provider includes built-in error handling for common API issues.

```typescript
try {
  const { text } = await generateText({
    model: anthropic.languageModel('claude-3-opus-20240229'),
    prompt: 'Hello, world!',
  });
} catch (error) {
  if (error instanceof Error) {
    console.error('Anthropic API Error:', error.message);
  }
}
```

## Best Practices

1.  **Security**: Always store your API key in environment variables.
2.  **Error Handling**: Implement proper error handling for API calls.
3.  **Model Selection**: Use appropriate model versions for your use case.
4.  **Rate-limiting**: Be mindful of rate limits and potential costs.
5.  **Caching**: Implement caching strategies for production environments to improve performance and reduce costs.

## License

MIT
npm package: @microfox/ai-provider-perplexity
Description: A Wrapped Perplexity Provider for Vercels AI SDK
Latest version: 1.2.1

> **Note:** This package is deprecated and will no longer be maintained. Please consider using an alternative.

# Perplexity Provider for Vercel's AI SDK

This package provides a convenient wrapper for using Perplexity's various models through Vercel's AI SDK.

## Installation

```bash
npm install @microfox/ai-provider-perplexity
```

## Usage

### Text Generation

```typescript
import { PerplexityProvider } from '@microfox/ai-provider-perplexity';
import { generateText } from 'ai';

const perplexity = new PerplexityProvider({
  apiKey: process.env.PERPLEXITY_API_KEY!,
});

const { text } = await generateText({
  model: perplexity.languageModel('sonar-pro'),
  prompt: 'Hello, world!',
});

console.log(text);
```

### Streaming Text Generation

```typescript
import { PerplexityProvider } from '@microfox/ai-provider-perplexity';
import { streamText } from 'ai';

const perplexity = new PerplexityProvider({
  apiKey: process.env.PERPLEXITY_API_KEY!,
});

const { textStream } = await streamText({
  model: perplexity.languageModel('sonar-pro'),
  prompt: 'Tell me a story about a futuristic city.',
});

for await (const chunk of textStream) {
  process.stdout.write(chunk);
}
```

## Configuration Options

### PerplexityProvider Options

```typescript
interface PerplexityProviderConfig {
  apiKey: string;
  baseURL?: string;
  headers?: Record<string, string>;
}
```

### Model Options

#### Language Models

- Available models: 'sonar-deep-research', 'sonar-reasoning-pro', 'sonar-reasoning', 'sonar-pro', 'sonar'

## Error Handling

The provider includes built-in error handling for common API issues.

```typescript
try {
  const { text } = await generateText({
    model: perplexity.languageModel('sonar-pro'),
    prompt: 'Hello, world!',
  });
} catch (error) {
  if (error instanceof Error) {
    console.error('Perplexity API Error:', error.message);
  }
}
```

## Best Practices

1.  **Security**: Always store your API key in environment variables.
2.  **Error Handling**: Implement proper error handling for API calls.
3.  **Model Selection**: Use appropriate model versions for your use case.
4.  **Rate-limiting**: Be mindful of rate limits and potential costs.
5.  **Caching**: Implement caching strategies for production environments to improve performance and reduce costs.

## License

MIT
npm package: @microfox/ai-provider-vertex
Description: A Wrapped Google Vertex Provider for Vercels AI SDK
Latest version: 1.2.1

> **Note:** This package is deprecated and will no longer be maintained. Please consider using an alternative.

# Google Vertex Provider for Vercel's AI SDK

This package provides a convenient wrapper for using Google Vertex's various models through Vercel's AI SDK.

## Installation

```bash
npm install @microfox/ai-provider-vertex
```

## Usage

### Language Models

```typescript
import { VertexProvider } from '@microfox/ai-provider-vertex';
import { generateText } from 'ai';

const vertex = new VertexProvider();

const response = await generateText({
  model: vertex.languageModel('gemini-1.5-pro-latest'),
  prompt: 'Hello, world!',
});

console.log(response.text);
```