Skip to content
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 packages/eve-extension/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ unavailable, use https://eve.dev/docs/extensions as a fallback.
- Declare the extension in `extension/extension.ts` with `defineExtension` from
`eve/extension`. Config is optional; read bound values via the handle's
`.config` in tools and hooks.
Note: even when every config *field* is optional, eve types the mount handle's
call signature as `(values: InferInput<S>)` — a **required** parameter — so
`agentkit()` fails `tsc` with TS2554 and docs must show `agentkit({})`. That
signature lives in the `eve` peer dep, not here; `.optional()` on the schema
does not fix it (it only makes `extension.config` possibly-undefined).
- Add contributions under `extension/` the same way as in an agent:
`tools/`, `channels/`, `connections/`, `skills/`, `schedules/`, `subagents/`,
`hooks/`, and optional instruction fragments (eve ≥0.41 supports the full set;
Expand Down
4 changes: 2 additions & 2 deletions packages/eve-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ Set `UPSTASH_REDIS_REST_URL` / `UPSTASH_REDIS_REST_TOKEN` in your env (the exten

## Mount it

Every field is optional. The smallest mount gives the agent memory tools:
Every field is optional, so the smallest mount is an empty config — it gives the agent memory tools:

```ts
// agent/extensions/agentkit.ts
import agentkit from "@upstash/agentkit-eve-extension";

export default agentkit();
export default agentkit({});
```

Add `search` to turn on the search tools over one index. The schema is built with `s` from
Expand Down
Loading