Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@promptbook/node

Package Overview
Dependencies
Maintainers
0
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/node - npm Package Versions

1
25

0.63.0-3

Diff

hejny
published 0.63.0-2 •

hejny
published 0.62.1 •

hejny
published 0.63.0-1 •

hejny
published 0.63.0-0 •

hejny
published 0.62.0 •

Changelog

Source

0.62.0 (2024-07-8)

[🎐] Better work with usage

  • Add usage to preparations and reports
  • Export function usageToHuman from @promptbook/core
  • Rename TotalCost to TotalUsage
  • Allow to reload cache
  • Fix error in uncertainNumber which always returned "uncertain 0"
  • [🐞] Fix usage counting in OpenAiExecutionTools
hejny
published 0.62.0-1 •

hejny
published 0.62.0-0 •

hejny
published 0.61.0 •

Changelog

Source

0.61.0 (2024-07-8)

Big syntax additions Working external knowledge, personas, preparation for instruments and actions

  • Add reserved parameter names
  • Add SAMPLE command with notation for parameter samples to .ptbk.md files
  • Add KNOWLEDGE command to .ptbk.md files
  • Change EXECUTE command to BLOCK command
  • Change executionType -> templateType
  • Rename SynraxError to ParsingError
  • Rename extractParameters to extractParameterNames
  • Rename ExecutionError to PipelineExecutionError
  • Remove TemplateError and replace with ExecutionError
  • Allow deep structure (h3, h4,...) in .ptbk.md files
  • Add callEmbeddingModel to LlmExecutionTools
  • callChatModel and callCompletionModel are not required to be implemented in LlmExecutionTools anymore
  • Remove MultipleLlmExecutionTools and make joinLlmExecutionTools function
  • You can pass simple array of LlmExecutionTools into ExecutionTools and it will be joined automatically via joinLlmExecutionTools
  • Remove the MarkdownStructure and replace by simpler solution flattenMarkdown + splitMarkdownIntoSections + parseMarkdownSection which works just with markdown strings and export from @promptbook/utils <- [🕞]
  • Markdown utils are exported through @promptbook/markdown-utils (and removed from @promptbook/utils)
  • String normalizers goes alongside with types; for example normalizeTo_SCREAMING_CASE -> string_SCREAMING_CASE
  • Export isValidUrl, isValidPipelineUrl, isValidFilePath, isValidJavascriptName, isValidSemanticVersion, isHostnameOnPrivateNetwork, isUrlOnPrivateNetwork and isValidUuid from @promptbook/utils
  • Add systemMessage, temperature and seed to ModelRequirements
  • Code blocks can be noteted both by ``` and >
  • Add caching and storage
  • Export utity stringifyPipelineJson to stringify PipelineJson with pretty formatting of loooooong knowledge indexes from @promptbook/core
hejny
published 0.61.0-30 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc