Skip to content

Tags: microsoft/vscode-prompt-tsx

Tags

v0.3.0-alpha.13

Toggle v0.3.0-alpha.13's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #129 from microsoft/connor4312/token-limit-element

feat: add a `TokenLimit` element

v0.3.0-alpha.12

Toggle v0.3.0-alpha.12's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adopt LanguageModelToolCallPart arg reordering (#125)

v0.3.0-alpha.11

Toggle v0.3.0-alpha.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix countMessageTokens (#124)

* Fix countMessageTokens

* Version bump

v0.3.0-alpha.10

Toggle v0.3.0-alpha.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix `countMessageTokens` (#123)

* Fix

* Version bump

v0.3.0-alpha.9

Toggle v0.3.0-alpha.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adopt finalized form of tools api, content2 -> content (#122)

* Adopt finalized form of tools api, content2 -> content

* Version bump

v0.3.0-alpha.8

Toggle v0.3.0-alpha.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Export ToolResult (#116)

v0.3.0-alpha.7

Toggle v0.3.0-alpha.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #115 from microsoft/connor4312/pass-wrapper-priority

feat: add a passPriority attribute for logical wrapper elements

v0.3.0-alpha.6

Toggle v0.3.0-alpha.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: containers without priority set should have max priority (#109)

* fix: containers without priority set should have max priority

Closes microsoft/vscode-copilot#9289

* run validation on pr

* 0.3.0-alpha.6

v0.3.0-alpha.5

Toggle v0.3.0-alpha.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add Expandable elements (#105)

Expandable can be used like so, providing a callback
which returns a string or a promise to a string:

```tsx
<Expandable value={async sizing => {
  let data = 'hi';
  while (true) {
    const more = getMoreUsefulData();
    if (await sizing.countTokens(data + more) > sizing.tokenBudget) { break }
    data += more;
  }
  }
  return data;
}} />
```

After the prompt is rendered, the renderer sums up the tokens used by
all messages. If there is unused budget, then any `<Expandable />`
elements' values are called again with their `PromptSizing` is increased
by the token excess.

If there are multiple `<Expandable />` elements, then they're re-called
in the order in which they were initially rendered. Because they're
designed to fill up any remaining space, it usually makes sense to have
at most one `<Expandable />` element per prompt.

v0.3.0-alpha.4

Toggle v0.3.0-alpha.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: enhance HTML tracer to visualize prune order (#103)

* wip

* wip

* finish up

* rm gitignored