The Open Framework for Building Agents
docs: remove Agent Runs guidance (#3640)
Chad Hietala03927b3f2a77
diff --git a/docs/channels/slack.mdx b/docs/channels/slack.mdxindex e5f9a0b58..fc390bf35 100644--- a/docs/channels/slack.mdx+++ b/docs/channels/slack.mdx@@ -135,7 +135,7 @@ Check the delivery path in order so you can identify where a Slack event stops:| Mentions work but DMs or thread replies do not | Check the Slack app's Event Subscriptions and OAuth scopes. DMs require `message.im` and `im:history`; channel replies require the matching message event and history scope. | Add the missing events or scopes, then reinstall the Slack app if Slack requires it. || A long response cannot be uploaded as a snippet | Check whether the installed Slack app has the `files:write` bot scope. | Add `files:write`, then reinstall the Slack app so the new scope takes effect. || A preview request receives an authentication page or protection error | Check whether the branch domain is exempt or the direct Slack request URL includes `x-vercel-protection-bypass`. Slack cannot complete an interactive Vercel Authentication challenge. | Add a Deployment Protection Exception for the branch domain, or add the automation bypass query parameter to a Slack app that uses environment-variable credentials. |-| The webhook reaches the deployment but the agent does not reply | Open the project's Vercel runtime logs, then inspect the session in **Agent Runs** when your team has access. | Use the first missing or failed stage to narrow the issue to channel dispatch, the agent run, or outbound Slack delivery. |+| The webhook reaches the deployment but the agent does not reply | Open the project's Vercel runtime logs and locate the request for the inbound Slack event. | Use the first missing or failed stage to narrow the issue to channel dispatch, model or tool execution, or outbound Slack delivery. |## Audiencediff --git a/docs/guides/deployment/vercel.mdx b/docs/guides/deployment/vercel.mdxindex bdd2316ec..996c53495 100644--- a/docs/guides/deployment/vercel.mdx+++ b/docs/guides/deployment/vercel.mdx@@ -155,12 +155,6 @@ eve dev https://your_agent.vercel.app/eve/supportSet `VERCEL_AUTOMATION_BYPASS_SECRET` locally before connecting if the deployment uses Deployment Protection.-## Inspect agent runs--Vercel detects eve and can add an **Agent Runs** tab under the project’s **Observability** view. Use it to browse sessions and inspect each conversation trace.--The Agent Runs tab requires enablement for your Vercel team. Contact your Vercel representative if the tab doesn’t appear. For third-party tracing backends, configure [OpenTelemetry instrumentation](../../observability/instrumentation).-## Continue configuring productionUse these guides to secure and observe the deployed agent:diff --git a/docs/guides/instrumentation/instrumentation.mdx b/docs/guides/instrumentation/instrumentation.mdxindex 707bfc980..a4abbd622 100644--- a/docs/guides/instrumentation/instrumentation.mdx+++ b/docs/guides/instrumentation/instrumentation.mdx@@ -159,6 +159,6 @@ not depend on execution order. Use `flush` to drain buffered records and## What to read next- [Migrate instrumentation](/docs/observability/instrumentation-migration): replace `agent/instrumentation.ts`.-- [OpenTelemetry](/docs/observability/otel): configure OTel destinations and managed exports.+- [OpenTelemetry](/docs/observability/otel): configure OTel destinations and third-party exports.- [Local development](../guides/dev-tui): inspect local traces in the TUI- [Hooks](../guides/hooks): react to runtime events outside the instrumentation lifecyclediff --git a/docs/guides/instrumentation/migration.md b/docs/guides/instrumentation/migration.mdindex 2f9639e92..55592a070 100644--- a/docs/guides/instrumentation/migration.md+++ b/docs/guides/instrumentation/migration.md@@ -89,9 +89,4 @@ seeRun `eve build`. A remaining `agent/instrumentation.ts` fails the build with amessage directing you to the instrumentation directory.-Before verifying a Vercel deployment, configure trace sampling. A deployed eve-project needs at least one sampling rule with a rate above 0%; we recommend-setting the rate to 100%. See-[Enable tracing on Vercel](/docs/observability/otel#enable-tracing-on-vercel).--Then run the agent and verify each destination independently.+Run the agent and verify each destination independently.diff --git a/docs/guides/instrumentation/otel.mdx b/docs/guides/instrumentation/otel.mdxindex 48d4da8cd..91a8c60ba 100644--- a/docs/guides/instrumentation/otel.mdx+++ b/docs/guides/instrumentation/otel.mdx@@ -1,13 +1,11 @@---title: "OpenTelemetry"-description: "Configure OpenTelemetry destinations, content capture, and managed exports."+description: "Configure OpenTelemetry destinations, content capture, and third-party exports."url: "/observability/otel"----eve configures its built-in OpenTelemetry destinations automatically.-`eve dev` records local traces, and preview and production deployments export-to Vercel Agent Runs by default. You do not need `otel()` or-`otelIntegration()` to use these defaults.+`eve dev` records local traces automatically. You do not need `otel()` or+`localTraces()` to use this default.## Configure OpenTelemetry@@ -118,11 +116,7 @@ lineage and trace-content policy. See [Remote agents](../guides/remote-agents#prUse `gen_ai.conversation.id` to find the traces for one conversation in yourdestination's span-search surface.-## Manage built-in destinations--Instrumentation has two environment-specific defaults.--### Local traces+## Local traces`eve dev` records local traces by default. Omitting`agent/instrumentation/local.ts` preserves that default. Export@@ -134,42 +128,16 @@ import { disableInstrumentation } from "eve/instrumentation";export default disableInstrumentation();```-### Vercel Agent Runs--Preview and production deployments export to Vercel Agent Runs by default.-Omitting `agent/instrumentation/agent-runs.ts` preserves that default. Export-`agentRuns(...)` from that file to reconfigure it, or export-`disableInstrumentation()` to disable it.--## Enable tracing on Vercel--A deployed eve project needs at least one-[sampling rule with a rate above 0%](https://vercel.com/docs/tracing/always-on-tracing#enable-always-on-tracing)-before Vercel collects traces. We recommend setting the rate to **100%** for-eve projects so every matching request is traced.--Select your team and project, then open-[**Settings → Tracing**](https://vercel.com/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Fsettings%2Ftracing&title=Go+to+Tracing+settings):--1. Select **Add Sampling Rule**.-2. Choose **All Environments**, **Production**, or **Preview**.-3. Set **Rate** to `100%`.-4. Select **Save**.--Tracing starts as soon as you save the rule. You can also manage sampling-rules with [`vercel traces config`](https://vercel.com/docs/cli/traces#manage-trace-sampling-rules).-The CLI accepts rates from 1 to 100%; add a 0% rule from the dashboard.-## Filter a destination-`otelIntegration()`, `localTraces()`, and `agentRuns()` accept one+`otelIntegration()` and `localTraces()` accept one`exportPolicy` object or an array applied in order. Each policy filters spansand attributes before that destination's processors receive them:-```ts title="agent/instrumentation/agent-runs.ts"-import { agentRuns } from "eve/instrumentation/otel";+```ts title="agent/instrumentation/local.ts"+import { localTraces } from "eve/instrumentation/otel";-export default agentRuns({+export default localTraces({exportPolicy: {span: ({ name }) => ({ emit: name !== "internal.cache.refresh" }),attribute: ({ key }) => (key === "customer.id" ? { emit: false } : { emit: true }),@@ -188,17 +156,17 @@ A throwing `span` callback drops the span from this destination. Return`{ replace: true, value }` from `attribute` to retain, remove, or changeone attribute.-### Further narrow a built-in destination+### Redact content from local traces-Return a redaction decision to further narrow what a built-in destination+Return a redaction decision to further narrow what the local trace destinationreceives after the process-wide `otel({ tracePolicy })` has admitted a trace.-For example, keep the spans in Agent Runs while redacting their inputs and-outputs unless the session is public:+For example, keep spans in the local trace viewer while redacting their inputs+and outputs unless the session is public:-```ts title="agent/instrumentation/agent-runs.ts"-import { agentRuns } from "eve/instrumentation/otel";+```ts title="agent/instrumentation/local.ts"+import { localTraces } from "eve/instrumentation/otel";-export default agentRuns({+export default localTraces({exportPolicy: {span: ({ audience }) =>audience === "public" ? { emit: true } : { redact: true, inputs: true, outputs: true },diff --git a/docs/reference/typescript-api.md b/docs/reference/typescript-api.mdindex 5d470b0ce..22cb2e381 100644--- a/docs/reference/typescript-api.md+++ b/docs/reference/typescript-api.md@@ -136,9 +136,9 @@ Tool definitions accept `availableInSubagents: false` to restrict the tool to to| `eve/memory/file` | `fileMemory`, `inMemory`, and the conditional document backend contract || `eve/memory/file/vercel` | `vercelBlob` and Vercel Blob backend options || `eve/context` | `defineState`, session and state types |-| `eve/sandbox` | `defineSandbox`, provider environments, and sandbox session types |+| `eve/sandbox` | `defineSandbox`, provider environments, and sandbox session types || `eve/instrumentation` | `defineInstrumentation`, `disableInstrumentation`, `isChannel`, lifecycle provider types |-| `eve/instrumentation/otel` | `otel`, `otelIntegration`, `localTraces`, `agentRuns`, OpenTelemetry policy types |+| `eve/instrumentation/otel` | `otel`, `otelIntegration`, `localTraces`, OpenTelemetry policy types || `eve/local-dev` | `getLocalDevCapability`, `LocalDevCapability` || [`eve/models`](../guides/evaluate) | Automatic model selection with `auto` || `eve/models/openai` | `openai`, `chatgpt`, deprecated `experimental_chatgpt` |