Skip to content

Conversation

@parteeksingh24
Copy link
Contributor

@parteeksingh24 parteeksingh24 commented Jan 21, 2026

Summary by CodeRabbit

  • Documentation

    • Added explanatory sections across Agents, CLI, and Services: evaluations, workbench, deployment, development, sessions, durable streams, sandboxes, storage, queues, and expanded getting-started/configuration guidance.
  • New Features

    • Added a runtime-detection utility and simplified context-based agent run pattern.
    • Expanded sandbox options to expose network ports and associate sandboxes with projects.
    • Added comprehensive Queues service documentation.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 21, 2026

📝 Walkthrough

Walkthrough

Documentation updates across Agents, CLI, Sandbox, Storage, Observability, and Services: added multiple "Why..." sections, changed AgentContext examples from ctx.invoke() to ctx.run(), introduced isInsideAgentRuntime() and SandboxInfo/SandboxCreateOptions fields, revised KV TTL examples, and added a new Queues reference. Duplicate CLI blocks noted.

Changes

Cohort / File(s) Summary
Agent Runtime API Updates
content/Agents/standalone-execution.mdx
Replaces ctx.invoke(() => agent.run(input)) with ctx.run(agent, input) across examples; adds no-input examples, cron/multi-agent sequences, legacy-invoke callout, and runtime detection via isInsideAgentRuntime().
Evaluations & Workbench
content/Agents/evaluations.mdx, content/Agents/workbench.mdx
Adds "Why Evals?" and "Why Workbench?" sections; updates where eval scores appear and expands workbench testing/iteration guidance.
CLI Reference Expansion
content/Reference/CLI/configuration.mdx, .../deployment.mdx, .../development.mdx, .../getting-started.mdx, .../storage.mdx
Adds organization-level configuration docs (duplicated block present), deployment intro with DNS fields/callouts, expanded --public rationale and example, preferences/headless/import project workflows, and note that KV is organization-scoped.
Sandbox SDK & Metadata
content/Services/Sandbox/index.mdx, content/Services/Sandbox/sdk-usage.mdx
Adds "Why Sandboxes?" and runtime metadata docs; adds network.port and projectId to SandboxCreateOptions; introduces SandboxInfo shape (sandboxId, status, createdAt, snapshotId, networkPort, url, and related context objects) and examples for exposing ports and retrieving URLs.
Storage: Durable Streams & Key-Value
content/Services/Storage/durable-streams.mdx, content/Services/Storage/key-value.mdx
Adds "Why Durable Streams?" and changes wording to "until deleted"; KV examples now create cache and config namespaces with per-namespace TTL, adds default TTL table, sliding-expiration callout, and deleteNamespace() warning.
Observability: Sessions
content/Services/Observability/sessions-debugging.mdx
Adds "Why Sessions?" section describing unified tracing, conversation context, automatic correlation, and session inspection.
New Queues Reference
content/Services/queues.mdx
New comprehensive Queues documentation covering queue types, publish/consume patterns, message options (metadata, partitionKey, idempotencyKey, ttl), CLI/programmatic management, dead-letter handling, HTTP ingestion, limits, examples, and best practices.
Learn Cookbook: Server Utilities
content/Learn/Cookbook/Patterns/server-utilities.mdx
Adds queue management examples and APIClient usage; updates middleware example to use createRouter and createMiddleware changes; links to Queues doc.
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dee22ab and dc25f10.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • content/Learn/Cookbook/Patterns/server-utilities.mdx
  • content/Services/queues.mdx
🧰 Additional context used
🪛 LanguageTool
content/Services/queues.mdx

[uncategorized] ~20-~20: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...ndpoints - Handle bursty workloads with rate limiting - Retry failed operations with exponent...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

🔇 Additional comments (13)
content/Services/queues.mdx (6)

1-29: LGTM! Clear introduction and well-structured comparison tables.

The documentation provides a good overview of when to use queues vs. other storage options, and the queue types table clearly explains worker vs. pubsub behavior.


30-92: LGTM! Comprehensive publishing examples.

The code examples clearly demonstrate basic publishing and advanced options (metadata, partitionKey, idempotencyKey, ttl). The result interface documentation helps users understand what to expect.


94-117: LGTM! Good error handling patterns.

The example demonstrates proper error discrimination using instanceof checks for specific queue errors, which is a recommended pattern for handling different failure modes.


119-147: LGTM! Good separation of concerns.

The CLI commands cover essential operations, and linking to the server-utilities page for programmatic management keeps this page focused while addressing the documentation gap for client initialization.


148-179: LGTM! Well-organized with appropriate cross-references.

The section maintains focus on concepts while delegating implementation details to the cookbook patterns page. The DLQ CLI commands are practical and well-documented.


180-229: LGTM! Comprehensive reference tables and best practices.

The settings and validation limits tables provide essential reference information. Best practices are actionable and cover key concerns (idempotency, TTLs, partition keys, DLQ monitoring).

content/Learn/Cookbook/Patterns/server-utilities.mdx (7)

3-3: LGTM!

Description appropriately updated to reflect the new queue management capabilities.


125-140: LGTM! Addresses the client initialization gap.

This setup section clearly demonstrates how to initialize the APIClient for programmatic queue management, which was flagged as missing in a previous review. The pattern is consistent with the existing Storage Access section.


142-173: LGTM! Complete queue lifecycle examples.

The examples cover all essential queue management operations with clear, practical code that aligns with the settings documented in the main Queues page.


175-197: LGTM! Correctly uses standalone logger.

The DLQ operations properly use the exported logger from the setup section rather than ctx.logger, which addresses the previous review concern about undefined context in standalone code.


199-264: LGTM! Comprehensive examples for all consumption patterns.

The examples cover webhook destinations with retry policies, HTTP ingestion with authentication, and pull-based consumption with proper ack/nack handling. The callout appropriately guides users to CLI for quick operations.


474-474: LGTM!

Appropriate cross-reference to the new Queues documentation page.


325-326: Import is correct—no changes needed.

The createMiddleware import from 'hono/factory' is the correct pattern. This is confirmed by Hono's official recommendations and is already documented consistently across the codebase (see content/Routes/middleware.mdx). The @agentuity/runtime package never exported createMiddleware; it only provides createRouter, createApp, and related utilities. The import in lines 325–326 matches the documented middleware pattern.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In `@content/Services/queues.mdx`:
- Around line 237-257: The snippet uses an undefined agent context `ctx`
(ctx.logger.warn) while calling listDeadLetterMessages/replayDeadLetterMessage;
replace the undefined `ctx.logger.warn` call with a standalone logger such as
`console.warn` (or remove the log) inside the for loop that iterates `messages`,
ensuring the references to `msg.id`, `msg.failure_reason`, and
`msg.delivery_attempts` remain the same so the loop and calls to
replayDeadLetterMessage(client, 'order-processing', msg.id) continue to work in
a non-agent standalone context.

In `@content/Services/Storage/durable-streams.mdx`:
- Around line 18-21: The doc currently calls streams "permanent" and "permanent
public URLs" but the Best Practices also instructs to "Delete streams after
they're no longer needed"; update the wording to remove the absolute "permanent"
claim: change phrases like "permanent" and "permanent public URL" to "durable
while retained", "durable public URL", or "accessible via their URL", and add
one sentence noting streams can be deleted and are immutable only for the
duration of their retention; also briefly mention that retention/delete behavior
and access control (ACL/permissions) determine how long URLs remain accessible
so readers know deletion/retention policies affect permanence.
🧹 Nitpick comments (6)
content/Reference/CLI/development.mdx (1)

175-180: Add a brief security caveat for public URLs.

Since public URLs can expose local endpoints, a short note about auth/secret validation (e.g., for webhook signatures) would help prevent accidental exposure.

✍️ Suggested doc addition
 **Example use cases:**
 - Testing Slack, Discord, or Twilio webhooks
 - Sharing with team members
 - Testing from mobile devices
 - OAuth callback URLs
+
+> Tip: Treat public URLs as internet‑exposed endpoints—validate webhook signatures and require auth where possible.
content/Agents/evaluations.mdx (1)

8-22: Avoid absolute claims about production-wide eval execution.

“Run on every session in production” sounds unconditional. If evals can be scoped, disabled, or rate‑limited, consider softer phrasing.

✍️ Suggested wording adjustment (if configurable)
- Agentuity evals test the whole run—every tool call, state change, and orchestration step. They run on every session in production, so you catch issues with real traffic.
+ Agentuity evals test the whole run—every tool call, state change, and orchestration step. They can run on production sessions (when enabled), so you catch issues with real traffic.
content/Services/Observability/sessions-debugging.mdx (1)

8-21: Confirm “time‑travel debugging” and full thread preservation are accurate.

If replay/time‑travel is gated or only available in certain tiers, consider qualifying that bullet, and avoid implying all threads are always preserved.

✍️ Suggested wording adjustment (if conditional)
- Agentuity tracks all of this automatically. Every run ties to a session. Every conversation thread is preserved. You get full context into what happened, when, and why—*without* writing tracking code.
+ Agentuity tracks all of this automatically. Every run ties to a session. Conversation threads are preserved (per retention settings), giving full context into what happened, when, and why—*without* writing tracking code.

- **Time-travel debugging**: Replay what happened in a session to reproduce issues
+ **Time-travel debugging**: Replay what happened in a session (where supported) to reproduce issues
content/Reference/CLI/deployment.mdx (1)

135-141: Clarify that Domains/DNS fields are conditional.

Consider noting that these fields appear only when custom domains are configured to avoid implying they always show.

Suggested wording tweak
- - DNS records (for custom domain configuration)
+ - DNS records (only when custom domains are configured)

- Domains:     api.example.com
- DNS Records: api.example.com CNAME p1234567890.agentuity.cloud
+ Domains:     api.example.com (custom domains only)
+ DNS Records: api.example.com CNAME p1234567890.agentuity.cloud (custom domains only)

Also applies to: 145-153

content/Services/Sandbox/sdk-usage.mdx (1)

437-479: Clarify optionality for conditional SandboxInfo fields.

The examples use null-checks for user, agent, and project, implying these fields are optional. Reflecting that in the table avoids ambiguity.

📝 Suggested table clarification
-| `networkPort` | `number` | Port exposed from sandbox (if configured) |
-| `url` | `string` | Public URL (when port is configured) |
-| `user` | `SandboxUserInfo` | User who created the sandbox |
-| `agent` | `SandboxAgentInfo` | Agent that created the sandbox |
-| `project` | `SandboxProjectInfo` | Associated project |
+| `networkPort` | `number \| undefined` | Port exposed from sandbox (if configured) |
+| `url` | `string \| undefined` | Public URL (when port is configured) |
+| `user` | `SandboxUserInfo \| undefined` | User who created the sandbox |
+| `agent` | `SandboxAgentInfo \| undefined` | Agent that created the sandbox |
+| `project` | `SandboxProjectInfo \| undefined` | Associated project |
content/Services/Sandbox/index.mdx (1)

176-177: Add the dependency note for network.port.

Consider mirroring the requirement that network.enabled: true is needed when exposing a port.

📝 Suggested wording
-| `network.port` | Port to expose to internet (1024-65535) | `3000` |
+| `network.port` | Port to expose to internet (1024-65535; requires `network.enabled: true`) | `3000` |
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5c06c05 and 85ec77f.

📒 Files selected for processing (14)
  • content/Agents/evaluations.mdx
  • content/Agents/standalone-execution.mdx
  • content/Agents/workbench.mdx
  • content/Reference/CLI/configuration.mdx
  • content/Reference/CLI/deployment.mdx
  • content/Reference/CLI/development.mdx
  • content/Reference/CLI/getting-started.mdx
  • content/Reference/CLI/storage.mdx
  • content/Services/Observability/sessions-debugging.mdx
  • content/Services/Sandbox/index.mdx
  • content/Services/Sandbox/sdk-usage.mdx
  • content/Services/Storage/durable-streams.mdx
  • content/Services/Storage/key-value.mdx
  • content/Services/queues.mdx
🧰 Additional context used
🪛 LanguageTool
content/Services/queues.mdx

[uncategorized] ~20-~20: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...ndpoints - Handle bursty workloads with rate limiting - Retry failed operations with exponent...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

🔇 Additional comments (23)
content/Reference/CLI/development.mdx (1)

153-173: Verify Gravity claims and example output match current CLI behavior.

Please confirm the HTTPS/cert generation, “secure tunneling,” and “automatic reconnection” claims, and that the “Agentuity DevMode” output format is accurate. If there’s an authoritative Gravity/CLI reference, consider linking it here for durability.

content/Agents/workbench.mdx (1)

8-19: Validate Workbench capability claims (metrics/token usage).

Please confirm that Workbench always shows token usage and response times for every request. If metrics require specific config or aren’t available for all models, soften the wording to avoid overpromising.

✍️ Suggested wording adjustment (if conditional)
-- **Execution metrics**: See token usage and response times for every request
+- **Execution metrics**: See token usage (when available) and response times for requests
content/Reference/CLI/configuration.mdx (1)

121-171: Verify --org flag shorthand and org-selection command name.

Examples use --org without a value to target the default org and reference agentuity auth org select. Please confirm both match the CLI’s actual syntax/verbs; otherwise adjust to the correct form (e.g., --org <org-id>).

content/Reference/CLI/deployment.mdx (2)

8-20: Nice concise rationale section.

Clear value proposition and feature framing; reads well.


167-169: DNS callout is helpful.

Good placement to reinforce how to validate custom domain setup.

content/Reference/CLI/getting-started.mdx (4)

95-125: Confirm organization/region preference command verbs.

Please verify the CLI uses agentuity auth org select/current/unselect and agentuity cloud region select/current/unselect exactly as shown; update if the verbs differ.


165-175: Verify new project-creation flags and accepted values.

Ensure --database, --storage, and --enable-auth are the correct flag names and that the documented value set (skip, new, or existing name) matches CLI behavior.


186-213: Headless examples look solid.

Examples are clear and align with automation use cases.


263-282: Confirm import validation and auto-reconciliation behavior.

Please verify the stated validation criteria (@agentuity/runtime plus agentuity.config.ts or agentuity/ directory) and the auto-prompt behavior during agentuity dev/deploy for unregistered projects.

content/Reference/CLI/storage.mdx (1)

16-18: Org-scoped KV callout is clear.

Good clarification for directory/project context expectations.

content/Services/Storage/key-value.mdx (3)

155-163: Confirm createNamespace option name and defaultTTLSeconds semantics.

Please verify the option name and that defaultTTLSeconds: 0 truly means “never expire,” and 3600 applies to all keys by default. This is API‑behavior‑dependent.


173-183: Verify TTL range and sliding-expiration threshold.

The table claims a 60–7,776,000s range and the callout specifies auto-extension when <50% TTL remains. Please confirm these exact limits/thresholds match the KV service behavior.


191-191: Confirm the “7 days default TTL” statement.

Ensure the default TTL (when unspecified at both namespace and key level) is indeed 7 days and consistent with the behavior above.

content/Agents/standalone-execution.mdx (5)

18-20: Basic ctx.run example is clear and concise.
Nice update to the new entry point without extra ceremony.


22-32: No-input usage + legacy callout reads well.
This should ease migration and clarify the preferred pattern.


56-59: Cron example aligns cleanly with the new invocation style.
Looks consistent with the rest of the page.


112-133: Runtime detection utility example is a strong addition.
Good dual-path guidance for inside vs. outside runtime usage.


68-83: Resolve the session/tracing context behavior inconsistency.
Line 83 states each ctx.run() call shares the same session and tracing context, while line 92 states each run gets its own session and tracing span. These statements conflict. Confirm whether the difference is due to the trigger parameter (line 90 uses { trigger: 'websocket' }) or if one statement is incorrect, then align the documentation.

Also applies to: 92-95

content/Services/Sandbox/sdk-usage.mdx (3)

151-165: Clear and practical project association example.

Nice, concise flow for creating and listing by projectId.


396-397: Config reference stays aligned with the new options.

Good addition of network.port and projectId in the options table.


124-145: Clarify how sandbox.execute() handles long-running processes in the port exposure example.

The code calls await sandbox.execute({ command: ['npm', 'run', 'serve'] }) followed by ctx.sandbox.get(sandbox.id) to retrieve the server URL. If execute() waits for process completion, the server command will block indefinitely and the subsequent code won't run. The documentation doesn't explicitly specify whether execute() blocks on long-running processes or whether backgrounding is required. Either clarify the expected behavior in the example or show how to properly start a long-running service without blocking—for example, using the streaming stdout API or documenting support for detached/background process flags.

content/Services/Sandbox/index.mdx (2)

8-22: Strong rationale section.

Clear and persuasive framing of isolation and lifecycle benefits.


80-94: Runtime metadata section reads well.

Helpful list of fields and a concise command pointer.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@content/Services/queues.mdx`:
- Around line 146-168: The code examples in the Programmatic Management section
reference a `client` parameter used in functions like `createQueue`,
`listQueues`, and `deleteQueue`, but the documentation never shows how to
initialize or create this client object. Add a code example at the beginning of
the Programmatic Management section that demonstrates how to create the client
using `createServerFetchAdapter` with proper Authorization headers configured
with the AGENTUITY_SDK_KEY environment variable. This will allow readers to
actually run the provided code snippets.
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 85ec77f and dee22ab.

📒 Files selected for processing (4)
  • content/Agents/evaluations.mdx
  • content/Services/Observability/sessions-debugging.mdx
  • content/Services/Storage/durable-streams.mdx
  • content/Services/queues.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • content/Agents/evaluations.mdx
🧰 Additional context used
🪛 LanguageTool
content/Services/queues.mdx

[uncategorized] ~20-~20: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...ndpoints - Handle bursty workloads with rate limiting - Retry failed operations with exponent...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

🔇 Additional comments (8)
content/Services/Observability/sessions-debugging.mdx (1)

8-21: LGTM!

The "Why Sessions?" section provides clear rationale for the feature. The explanation of traditional observability limitations versus agent-specific needs is well-articulated, and the bullet points effectively summarize the practical benefits.

content/Services/Storage/durable-streams.mdx (1)

6-21: LGTM!

The updates effectively address the previous review concern about the "permanent" terminology. Line 6 now correctly states streams are "accessible via URL until deleted," and the bullet point uses "Durable artifacts" instead of "Permanent artifacts." The "Why Durable Streams?" section clearly articulates the problem with WebSocket/SSE fragility during LLM streaming and explains how durable streams solve it.

content/Services/queues.mdx (6)

1-29: Well-structured introduction and overview.

The comparison table, use cases, and queue type explanations provide clear guidance for users deciding when to use queues versus other storage options.


30-92: LGTM!

The publishing examples correctly demonstrate ctx.queue.publish() within agent handlers, with comprehensive options documentation and clear result interface.


94-117: Good error handling pattern.

The example demonstrates proper typed error handling with QueueNotFoundError and QueueValidationError, providing clear recovery paths.


170-218: LGTM!

The webhook destination configuration with retry policy and the pull-based ack/nack consumption pattern are well-documented. The client initialization gap applies here as well (covered in previous comment).


237-260: Context initialization issue resolved.

The code now correctly uses createAgentContext() to obtain a valid ctx object for logging. The explanatory note on line 259 linking to standalone execution documentation is helpful.

Note: The client variable remains undefined here as well (same documentation gap noted in the Queue Management section).


261-324: Comprehensive reference sections.

The HTTP ingestion sources, queue settings, validation limits, and best practices provide excellent reference material. The auth type options and default settings tables are particularly useful.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Comment on lines 146 to 168
### Programmatic Management

Use `@agentuity/server` for full queue management in routes or standalone scripts:

```typescript
import { createQueue, listQueues, deleteQueue } from '@agentuity/server';

// Create a queue
const queue = await createQueue(client, {
name: 'order-processing',
queue_type: 'worker',
settings: {
default_max_retries: 5,
default_visibility_timeout_seconds: 60,
},
});

// List queues
const { queues } = await listQueues(client);

// Delete a queue
await deleteQueue(client, 'old-queue');
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, let's find and read the queues.mdx file to see the context
find . -name "queues.mdx" -type f | head -5

Repository: agentuity/docs

Length of output: 87


🏁 Script executed:

# Search for createClient documentation
rg "createClient" --type md --type mdx -n -B 2 -A 5

Repository: agentuity/docs

Length of output: 85


🏁 Script executed:

# Search for client initialization patterns in documentation
rg "client.*=.*createClient|const.*client" --type md --type mdx -n -A 2

Repository: agentuity/docs

Length of output: 85


🏁 Script executed:

# Look for any client initialization or setup documentation
rg "initialize.*client|setup.*client|client.*initialization" --type md --type mdx -n -B 2 -A 3 -i

Repository: agentuity/docs

Length of output: 85


🏁 Script executed:

# Read the queues.mdx file to see context around lines 146-168
wc -l ./content/Services/queues.mdx

Repository: agentuity/docs

Length of output: 91


🏁 Script executed:

# Read lines around 146-168 to see full context
sed -n '1,180p' ./content/Services/queues.mdx | cat -n

Repository: agentuity/docs

Length of output: 6372


🏁 Script executed:

# Search for createClient without type restrictions
rg "createClient" -n -B 2 -A 5

Repository: agentuity/docs

Length of output: 3021


🏁 Script executed:

# Search for any client setup or initialization examples
rg "client.*=|import.*client" -n -B 1 -A 3 | head -100

Repository: agentuity/docs

Length of output: 9318


🏁 Script executed:

# Search for `@agentuity/server` usage in documentation
rg "@agentuity/server" -n -B 2 -A 8

Repository: agentuity/docs

Length of output: 19147


🏁 Script executed:

# Look at webhook destination code which also uses client
sed -n '170,195p' ./content/Services/queues.mdx | cat -n

Repository: agentuity/docs

Length of output: 832


🏁 Script executed:

# Search for any server-side client initialization or setup documentation
rg "server.*client|Server.*API|API.*key" -i -n | head -50

Repository: agentuity/docs

Length of output: 16748


Add documentation for initializing the client object in server-side queue management examples.

The code examples in this section (and subsequent sections: webhook destinations, pull-based consumption, DLQ operations, HTTP sources) use a client parameter in createQueue(client, ...), listQueues(client), deleteQueue(client, ...), and similar functions, but never show how to create or obtain this client. Readers cannot run these code snippets without knowing client initialization.

Add an example showing client setup, e.g.:

import { createServerFetchAdapter } from '@agentuity/server';

const client = createServerFetchAdapter({
  headers: {
    Authorization: `Bearer ${process.env.AGENTUITY_SDK_KEY}`,
  },
});
🤖 Prompt for AI Agents
In `@content/Services/queues.mdx` around lines 146 - 168, The code examples in the
Programmatic Management section reference a `client` parameter used in functions
like `createQueue`, `listQueues`, and `deleteQueue`, but the documentation never
shows how to initialize or create this client object. Add a code example at the
beginning of the Programmatic Management section that demonstrates how to create
the client using `createServerFetchAdapter` with proper Authorization headers
configured with the AGENTUITY_SDK_KEY environment variable. This will allow
readers to actually run the provided code snippets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants