pull/643/head^2
Travis Fischer 2024-06-05 21:50:19 -05:00
rodzic 4cc6469807
commit 0499aa1af4
1 zmienionych plików z 11 dodań i 21 usunięć

Wyświetl plik

@ -79,8 +79,7 @@ async function main() {
perigon.functions.pick('search_news_stories'),
serper
),
systemMessage:
'You are a helpful assistant. Be as concise as possible. Respond in markdown. Always cite your sources.'
systemMessage: `You are a helpful assistant. Be as concise as possible.`
})
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.
## 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
| Service | Client | Description |
@ -168,6 +148,16 @@ The SDK-specific imports are all isolated to keep the main `@agentic/stdlib` as
- Dexa 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
- rename this repo to agentic