kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic
rodzic
61f86baab8
commit
d48bf00dfe
|
@ -79,8 +79,7 @@ async function main() {
|
||||||
perigon.functions.pick('search_news_stories'),
|
perigon.functions.pick('search_news_stories'),
|
||||||
serper
|
serper
|
||||||
),
|
),
|
||||||
systemMessage:
|
systemMessage: `You are a helpful assistant. Be as concise as possible.`
|
||||||
'You are a helpful assistant. Be as concise as possible. Respond in markdown. Always cite your sources.'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const result = await runner(
|
const result = await runner(
|
||||||
|
@ -102,25 +101,6 @@ You can pass as many or as few of these `AIFunctionLike` objects as you'd like a
|
||||||
|
|
||||||
The SDK-specific imports are all isolated to keep the main `@agentic/stdlib` as lightweight as possible.
|
The SDK-specific imports are all isolated to keep the main `@agentic/stdlib` as lightweight as possible.
|
||||||
|
|
||||||
## Client Goals
|
|
||||||
|
|
||||||
- clients should be as minimal as possible
|
|
||||||
- clients must use `ky` as a lightweight native fetch wrapper
|
|
||||||
- clients must have a strongly-typed TS DX
|
|
||||||
- clients should expose select methods via the `@aiFunction(...)` decorator
|
|
||||||
- `@aiFunction` methods must use `zod` for input schema validation
|
|
||||||
- it should be easy to create external clients which follow the `AIFunctionsProvider` superclass / `@aiFunction` decorator pattern
|
|
||||||
- common utility functions for LLM-based function calling should be exported for convenience
|
|
||||||
- clients and AIFunctions should be composable via `AIFunctionSet`
|
|
||||||
- clients must work with all major TS AI SDKs
|
|
||||||
- SDK adaptors should be as lightweight as possible and be optional peer dependencies of `@agentic/stdlib`
|
|
||||||
- SDK adatptor entrypoints should all be isolated to their own top-level imports
|
|
||||||
- `@agentic/stdlib/ai-sdk`
|
|
||||||
- `@agentic/stdlib/langchain`
|
|
||||||
- `@agentic/stdlib/llamaindex`
|
|
||||||
- `@agentic/stdlib/dexter`
|
|
||||||
- `@agentic/stdlib/genkit`
|
|
||||||
|
|
||||||
## Services
|
## Services
|
||||||
|
|
||||||
| Service | Client | Description |
|
| Service | Client | Description |
|
||||||
|
@ -168,6 +148,16 @@ The SDK-specific imports are all isolated to keep the main `@agentic/stdlib` as
|
||||||
- Dexa Dexter
|
- Dexa Dexter
|
||||||
- `import { createDexterFunctions } from '@agentic/stdlib/dexter'`
|
- `import { createDexterFunctions } from '@agentic/stdlib/dexter'`
|
||||||
|
|
||||||
|
## Client Goals
|
||||||
|
|
||||||
|
- clients should be as minimal as possible
|
||||||
|
- clients should use `ky` and `zod` where possible
|
||||||
|
- clients must have a strongly-typed TS DX
|
||||||
|
- clients should expose select methods via the `@aiFunction(...)` decorator
|
||||||
|
- clients and AIFunctions should be composable via `AIFunctionSet`
|
||||||
|
- clients must work with all major TS AI SDKs
|
||||||
|
- SDK adaptors should be as lightweight as possible and be optional peer dependencies of `@agentic/stdlib`
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- rename this repo to agentic
|
- rename this repo to agentic
|
||||||
|
|
Ładowanie…
Reference in New Issue