Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README link fix, code fix #8

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/moody-rings-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inngest/agent-kit": patch
---

Fix README links and code examples
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ orchestration, state, or infrastructure.
A networked agent:
```ts
// Create a network of agents with separate tasks and instructions
// to solve // a specific task.
const network = new Network({
// to solve a specific task.
const network = createNetwork({
agents: [navigator, classifier, summarizer],
defaultModel: openai({ model: "gpt-4o", step }),
defaultModel: agenticOpenai({ model: "gpt-4o", step }),
})

const input = `Classify then summarize the latest 10 blog posts
Expand All @@ -34,10 +34,10 @@ const result = await network.run(, ({ network }) => {

A simple agent:
```ts
const writer = new Agent({
const writer = createAgent({
name: "writer",
system: "You are an expert writer. You write readable, concise, simple content.",
model: openai({ model: "gpt-4o", step }),
model: agenticOpenai({ model: "gpt-4o", step }),
});

const { output } = await writer.run(
Expand All @@ -60,8 +60,8 @@ The full Agent kit documentation is available
[here](https://www.inngest.com/docs/agent-kit/overview). You can also jump to
specific guides and references:

- [Agents and Tools](https://website-git-feat-ai-docs-post-inngest.vercel.app/docs/agent-kit/ai-agents-tools)
- [Network, state, and routing](https://website-git-feat-ai-docs-post-inngest.vercel.app/docs/agent-kit/ai-agent-network-state-routing)
- [Agents and Tools](https://www.inngest.com/docs/agent-kit/ai-agents-tools)
- [Network, state, and routing](https://www.inngest.com/docs/agent-kit/ai-agent-network-state-routing)

## Examples

Expand Down