Skip to content

docs: document prompt API usage#26

Open
varin-nair-factory wants to merge 8 commits into
mainfrom
vn/prompt-docs
Open

docs: document prompt API usage#26
varin-nair-factory wants to merge 8 commits into
mainfrom
vn/prompt-docs

Conversation

@varin-nair-factory
Copy link
Copy Markdown
Contributor

@varin-nair-factory varin-nair-factory commented May 2, 2026

Summary

  • Document run() as the one-shot aggregated-result API while keeping query() as the streaming one-shot API.
  • Add result metadata and structured-output support to DroidResult / message sends.
  • Add SDK-backed MCP tool support plus offline examples covering query/session parity, result metadata, structured output, and MCP tools.
  • Update lint/package config so examples are published, typechecked, and linted correctly.

Validation

  • npm run typecheck
  • npm run typecheck:examples
  • npm run format:check
  • npm test
  • npm run lint
  • npm run build
  • Live droid-dev smoke checks for structured output, result metadata, query streaming, abort handling, and SDK MCP tool usage

factory-davidgu
factory-davidgu previously approved these changes May 2, 2026
@varin-nair-factory varin-nair-factory force-pushed the vn/prompt-one-shot branch 3 times, most recently from 596dfa8 to d50f4f4 Compare May 4, 2026 23:31
Base automatically changed from vn/prompt-one-shot to main May 4, 2026 23:40
@varin-nair-factory varin-nair-factory dismissed factory-davidgu’s stale review May 4, 2026 23:40

The base branch was changed.

varin-nair-factory and others added 7 commits May 4, 2026 16:55
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Update docs and example scripts to use the run API, safer temp-file flows, and lint/typecheck coverage for examples.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
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