Search

3,155 results found for anthropic (1213ms)

Code
3,144

import { DateTime } from "https://esm.sh/luxon@3.4.4";
import Anthropic from "npm:@anthropic-ai/sdk@0.24.3";
const RECIPIENTS = ["Geoffrey", "Maggie"] as const;
async function analyzeHtmlContent(
anthropic: Anthropic,
htmlContent: string,
imageSummaries: ImageSummary[]
) {
try {
const response = await anthropic.messages.create({
model: "claude-3-5-sonnet-latest",
max_tokens: 4196,
console.log(e.text);
// Get Anthropic API key from environment
const apiKey = Deno.env.get("ANTHROPIC_API_KEY");
if (!apiKey) {
console.error("Anthropic API key is not configured for this val.");
return;
}
// Initialize Anthropic client
const anthropic = new Anthropic({ apiKey });
// Process each image attachment serially
);
const response = await anthropic.messages.create({
model: "claude-3-5-sonnet-latest",
max_tokens: 4196,
// Analyze HTML content
const htmlAnalysis = await analyzeHtmlContent(
anthropic,
e.html || "",
summaries
} from "https://deno.land/x/grammy@v1.35.0/mod.ts";
import { DateTime } from "https://esm.sh/luxon@3.4.4";
import Anthropic from "npm:@anthropic-ai/sdk@0.24.3";
import { backstory } from "../backstory.ts";
import {
/**
* Format chat history for Anthropic API
*/
function formatChatHistoryForAI(history) {
*/
async function analyzeMessageContent(
anthropic,
username,
messageText,
console.log({ systemPrompt, formattedHistory });
const response = await anthropic.messages.create({
model: "claude-3-5-sonnet-latest",
max_tokens: 4196,
bot.on("message", async (ctx) => {
try {
// Get Anthropic API key from environment
const apiKey = Deno.env.get("ANTHROPIC_API_KEY");
if (!apiKey) {
console.error("Anthropic API key is not configured.");
ctx.reply(
"I apologize, but I'm not properly configured at the moment. Please inform the household
}
// Initialize Anthropic client
const anthropic = new Anthropic({ apiKey });
// Get message text and user info
// Analyze message content with chat history context
const analysis = await analyzeMessageContent(
anthropic,
username,
messageText,
} from "https://esm.town/v/geoffreylitt/getWeather";
import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
import Anthropic from "npm:@anthropic-ai/sdk@0.24.3";
const TABLE_NAME = `memories`;
try {
// Get API key from environment
const apiKey = Deno.env.get("ANTHROPIC_API_KEY");
if (!apiKey) {
console.error("Anthropic API key is not configured.");
return null;
}
// Initialize Anthropic client
const anthropic = new Anthropic({ apiKey });
const response = await anthropic.messages.create({
model: "claude-3-5-sonnet-latest",
max_tokens: 150,
import { nanoid } from "https://esm.sh/nanoid@5.0.5";
import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
import Anthropic from "npm:@anthropic-ai/sdk@0.24.3";
const TABLE_NAME = `memories`;
try {
// Get API key from environment
const apiKey = Deno.env.get("ANTHROPIC_API_KEY");
if (!apiKey) {
console.error("Anthropic API key is not configured.");
return null;
}
// Initialize Anthropic client
const anthropic = new Anthropic({ apiKey });
// Format previous facts for the prompt
console.log({ message });
const response = await anthropic.messages.create({
model: "claude-3-5-sonnet-latest",
max_tokens: 1000,
* Examples:
* /api/resolve/davila7/claude-code-templates/supabase-toolkit
* /api/resolve/anthropics/claude-code-plugins/agent-sdk-dev
*/
export async function resolvePlugin(c: Context) {
**Example:**
- `/api/resolve/anthropics/claude-code-plugins/agent-sdk-dev`
**Response:**
{
"name": "agent-sdk-dev",
"namespace": "anthropics/claude-code-plugins",
"gitUrl": "https://github.com/anthropics/claude-code-plugins.git",
"description": "Development tools for building agents",
"version": "1.0.0",
"author": "Anthropic",
"keywords": ["agent", "sdk"],
"category": "development",
**Example:**
- `/api/skills/anthropics/skills/algorithmic-art`
### Install Skill
Returns git URL, metadata, and increments download stats.
Example: `/api/resolve/anthropics/claude-code-plugins/agent-sdk-dev`
2. **Search Plugins:**
Returns skill info (read-only, no install increment).
Example: `/api/skills/anthropics/skills/algorithmic-art`
2. **Install Skill:**
* Examples:
* /api/resolve/davila7/claude-code-templates/supabase-toolkit
* /api/resolve/anthropics/claude-code-plugins/agent-sdk-dev
*/
export async function resolvePlugin(c: Context) {
**Example:**
- `/api/resolve/anthropics/claude-code-plugins/agent-sdk-dev`
**Response:**
{
"name": "agent-sdk-dev",
"namespace": "anthropics/claude-code-plugins",
"gitUrl": "https://github.com/anthropics/claude-code-plugins.git",
"description": "Development tools for building agents",
"version": "1.0.0",
"author": "Anthropic",
"keywords": ["agent", "sdk"],
"category": "development",
**Example:**
- `/api/skills/anthropics/skills/algorithmic-art`
### Install Skill
Returns git URL, metadata, and increments download stats.
Example: `/api/resolve/anthropics/claude-code-plugins/agent-sdk-dev`
2. **Search Plugins:**
Returns skill info (read-only, no install increment).
Example: `/api/skills/anthropics/skills/algorithmic-art`
2. **Install Skill:**

Vals

10
View more
diegoivo
anthropicWorkflow
 
Public
diegoivo
sdkAnthropic
 
Public
maddy
anthropicProxy
 
Public
stevekrouse
anthropicStreamDemo
 
Public
toowired
anthropicCaching
 
Public

Users

No users found
No docs found