From 1c5456a99ae5bbd1e40955ddb1a5459692d83886 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Fri, 22 Nov 2024 19:00:29 +0000 Subject: [PATCH 1/2] README link fix, code fix --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2f40c12..6095023 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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( @@ -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 From 5e5c53239e424ea35d468ffbe02d7391020c9b6e Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Fri, 22 Nov 2024 19:01:00 +0000 Subject: [PATCH 2/2] Create moody-rings-hammer.md --- .changeset/moody-rings-hammer.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/moody-rings-hammer.md diff --git a/.changeset/moody-rings-hammer.md b/.changeset/moody-rings-hammer.md new file mode 100644 index 0000000..20f4674 --- /dev/null +++ b/.changeset/moody-rings-hammer.md @@ -0,0 +1,5 @@ +--- +"@inngest/agent-kit": patch +--- + +Fix README links and code examples