MCPcopy Index your code
hub / github.com/WeAreAigur/client

github.com/WeAreAigur/client @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
153 symbols 364 edges 101 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Aigur Client

A free and opensource (MIT) client to compose and invoke fully typed Generative AI pipelines.

Check out the documentation at https://client.aigur.dev

Simple Example

This simple pipeline accepts a subject and returns a joke about that subject.

import {
  createClient,
  replaceString,
  gpt3Prediction
} from '@aigur/client';

export const aigur = createClient({
  apiKeys: {
    openai: process.env.OPENAI_KEY!,
  },
});

export const jokeGptPipeline = aigur.pipeline
  .create<{ subject: string }, { joke: string }>({
    id: 'jokegpt',
     flow: (flow) =>
       flow
         .node(replaceString, ({ input }) => ({
           text: input.subject,
           modifier: 'tell me a joke about $(text)$',
         }))
         .node(gpt3Prediction, ({ prev }) => ({
           prompt: prev.text,
         }))
         .output(({ prev }) => ({
           joke: prev.text,
         })
  });

const { joke } = await jokeGptPipeline.invoke({
  subject: 'a car'
});

Create an Image with Your Voice

Check out this next example in the docs site.

aigur-client

Extension points exported contracts — how you extend this code

AigurConfiguration (Interface)
(no doc)
packages/client/src/types.ts
Tab (Interface)
(no doc)
apps/docs/components/Tabs.tsx
PipelineConf (Interface)
(no doc)
packages/client/src/types.ts
TabsProps (Interface)
(no doc)
apps/docs/components/Tabs.tsx
MemoryManager (Interface)
(no doc)
packages/client/src/types.ts
JokeFormProps (Interface)
(no doc)
apps/docs/components/JokeForm.tsx
ImageType (Interface)
(no doc)
apps/docs/components/ImageToPoem/ImageUpload.tsx
ImageUploadProps (Interface)
(no doc)
apps/docs/components/ImageToPoem/ImageUpload.tsx

Core symbols most depended-on inside this repo

node
called by 30
packages/client/src/builder.ts
output
called by 9
packages/client/src/builder.ts
invoke
called by 8
packages/client/src/Pipeline.ts
createClient
called by 5
packages/client/src/Aigur.ts
getUserId
called by 5
apps/docs/services/user.ts
createDynamicPlaceholders
called by 4
packages/client/src/builder.ts
notifyEvent
called by 4
packages/client/src/Pipeline.ts
makeid
called by 4
packages/client/src/makeid.ts

Shape

Function 109
Interface 21
Method 19
Class 4

Languages

TypeScript100%

Modules by API surface

packages/client/src/Pipeline.ts16 symbols
packages/client/src/builder.ts7 symbols
packages/client/src/getConcreteNodeInput.ts5 symbols
apps/docs/components/Chat/Chat.tsx5 symbols
packages/memory-upstash-redis/src/upstash-redis.ts4 symbols
packages/client/src/nodes/text/prediction/gpt3.stream.ts4 symbols
packages/ably/src/ably.ts4 symbols
apps/docs/hooks/useRecord.ts4 symbols
apps/docs/components/SummarizeAndRead/PlayAudio.tsx4 symbols
apps/docs/components/ImageToPoem/ImageUpload.tsx4 symbols
packages/supabase/src/storageUpload.ts3 symbols
packages/client/src/types.ts3 symbols

For agents

$ claude mcp add client \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact