1
import { PineconeClient } from "npm:@pinecone-database/pinecone";
2
3
type Pinecone = {
4
apiKey: string;
5
environment: string;
6
};
7
export async function main(auth: Pinecone, index_name: string) {
8
const client = new PineconeClient();
9
await client.init(auth);
10
return await client.describeIndex({ indexName: index_name });
11
}
12