Package Exports
- @ariaflowagents/core
- @ariaflowagents/core/agents
- @ariaflowagents/core/flows
- @ariaflowagents/core/guards
- @ariaflowagents/core/hooks
- @ariaflowagents/core/runtime
- @ariaflowagents/core/session
- @ariaflowagents/core/tools
- @ariaflowagents/core/types
Readme
@ariaflowagents/core
AriaFlow core runtime and agent primitives for building structured, multi-agent conversations.
Install
npm install @ariaflowagents/coreQuick start
import { Runtime, type AgentConfig } from '@ariaflowagents/core';
import { openai } from '@ai-sdk/openai';
const supportAgent: AgentConfig = {
id: 'support',
name: 'Support Agent',
systemPrompt: 'You are a helpful support agent.',
model: openai('gpt-4o-mini') as any,
};
const runtime = new Runtime({
agents: [supportAgent],
defaultAgentId: 'support',
defaultModel: openai('gpt-4o-mini') as any,
});
const run = async () => {
for await (const part of runtime.stream({ input: 'Hello there' })) {
if (part.type === 'text-delta') {
process.stdout.write(part.text);
}
}
};
run();