@promptbook/types 0.105.0-3 → 0.105.0-30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -77
- package/esm/typings/src/_packages/browser.index.d.ts +4 -0
- package/esm/typings/src/_packages/components.index.d.ts +20 -0
- package/esm/typings/src/_packages/core.index.d.ts +19 -11
- package/esm/typings/src/_packages/node.index.d.ts +2 -0
- package/esm/typings/src/_packages/openai.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +44 -2
- package/esm/typings/src/_packages/utils.index.d.ts +4 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +6 -1
- package/esm/typings/src/book-2.0/agent-source/parseTeamCommitment.d.ts +28 -0
- package/esm/typings/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +5 -0
- package/esm/typings/src/book-components/Chat/AgentChip/AgentChip.d.ts +67 -0
- package/esm/typings/src/book-components/Chat/AgentChip/index.d.ts +2 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageItem.d.ts +33 -1
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +89 -11
- package/esm/typings/src/book-components/Chat/Chat/ChatSoundToggle.d.ts +23 -0
- package/esm/typings/src/book-components/Chat/Chat/ClockIcon.d.ts +9 -0
- package/esm/typings/src/book-components/Chat/LlmChat/FriendlyErrorMessage.d.ts +20 -0
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +13 -0
- package/esm/typings/src/book-components/Chat/SourceChip/SourceChip.d.ts +35 -0
- package/esm/typings/src/book-components/Chat/SourceChip/index.d.ts +2 -0
- package/esm/typings/src/book-components/Chat/effects/ChatEffectsSystem.d.ts +14 -0
- package/esm/typings/src/book-components/Chat/effects/components/ConfettiEffect.d.ts +18 -0
- package/esm/typings/src/book-components/Chat/effects/components/HeartsEffect.d.ts +18 -0
- package/esm/typings/src/book-components/Chat/effects/configs/defaultEffectConfigs.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/effects/index.d.ts +18 -0
- package/esm/typings/src/book-components/Chat/effects/types/ChatEffect.d.ts +20 -0
- package/esm/typings/src/book-components/Chat/effects/types/ChatEffectConfig.d.ts +21 -0
- package/esm/typings/src/book-components/Chat/effects/types/ChatEffectType.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/effects/types/ChatEffectsSystemProps.d.ts +32 -0
- package/esm/typings/src/book-components/Chat/effects/utils/detectEffects.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/types/ChatMessage.d.ts +37 -0
- package/esm/typings/src/book-components/Chat/utils/createTeamToolNameFromUrl.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/utils/getToolCallChipletText.d.ts +40 -0
- package/esm/typings/src/book-components/Chat/utils/loadAgentProfile.d.ts +69 -0
- package/esm/typings/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +53 -0
- package/esm/typings/src/book-components/Chat/utils/resolveCitationUrl.d.ts +11 -0
- package/esm/typings/src/book-components/Chat/utils/toolCallParsing.d.ts +64 -0
- package/esm/typings/src/book-components/icons/EmailIcon.d.ts +15 -0
- package/esm/typings/src/commitments/NOTE/NOTE.d.ts +2 -2
- package/esm/typings/src/commitments/TEAM/TEAM.d.ts +45 -0
- package/esm/typings/src/commitments/TEMPLATE/TEMPLATE.d.ts +44 -0
- package/esm/typings/src/commitments/TEMPLATE/TEMPLATE.test.d.ts +1 -0
- package/esm/typings/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +19 -1
- package/esm/typings/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +22 -0
- package/esm/typings/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +13 -0
- package/esm/typings/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +48 -0
- package/esm/typings/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +11 -0
- package/esm/typings/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +18 -0
- package/esm/typings/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +46 -0
- package/esm/typings/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.test.d.ts +1 -0
- package/esm/typings/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +11 -0
- package/esm/typings/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts +1 -0
- package/esm/typings/src/commitments/USE_TIME/USE_TIME.d.ts +6 -0
- package/esm/typings/src/commitments/_base/BaseCommitmentDefinition.d.ts +6 -0
- package/esm/typings/src/commitments/_base/CommitmentDefinition.d.ts +6 -0
- package/esm/typings/src/commitments/_base/formatOptionalInstructionBlock.d.ts +6 -0
- package/esm/typings/src/commitments/_common/commitmentToolFunctions.d.ts +26 -0
- package/esm/typings/src/commitments/_common/getAllCommitmentDefinitions.d.ts +8 -0
- package/esm/typings/src/commitments/_common/getAllCommitmentTypes.d.ts +8 -0
- package/esm/typings/src/commitments/_common/getAllCommitmentsToolFunctionsForBrowser.d.ts +9 -0
- package/esm/typings/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +13 -0
- package/esm/typings/src/commitments/_common/getAllCommitmentsToolTitles.d.ts +7 -0
- package/esm/typings/src/commitments/_common/getCommitmentDefinition.d.ts +10 -0
- package/esm/typings/src/commitments/_common/getGroupedCommitmentDefinitions.d.ts +17 -0
- package/esm/typings/src/commitments/_common/isCommitmentSupported.d.ts +9 -0
- package/esm/typings/src/commitments/index.d.ts +5 -58
- package/esm/typings/src/constants.d.ts +129 -0
- package/esm/typings/src/executables/$provideExecutablesForNode.d.ts +1 -0
- package/esm/typings/src/execution/AvailableModel.d.ts +5 -4
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +3 -1
- package/esm/typings/src/execution/PromptResult.d.ts +2 -19
- package/esm/typings/src/execution/utils/$provideExecutionToolsForNode.d.ts +1 -0
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +7 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +6 -1
- package/esm/typings/src/llm-providers/agent/AgentOptions.d.ts +7 -0
- package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +1 -0
- package/esm/typings/src/llm-providers/agent/RemoteAgentOptions.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/createGoogleExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAgentExecutionTools.d.ts +43 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +4 -2
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +8 -1
- package/esm/typings/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +7 -0
- package/esm/typings/src/pipeline/prompt-notation.d.ts +27 -2
- package/esm/typings/src/pipeline/prompt-notation.test.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +1 -0
- package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -0
- package/esm/typings/src/scrapers/_common/register/$provideScriptingForNode.d.ts +1 -0
- package/esm/typings/src/search-engines/SearchEngine.d.ts +1 -1
- package/esm/typings/src/search-engines/_index.d.ts +6 -0
- package/esm/typings/src/search-engines/bing/BingSearchEngine.d.ts +1 -1
- package/esm/typings/src/search-engines/dummy/DummySearchEngine.d.ts +1 -1
- package/esm/typings/src/search-engines/google/GoogleSearchEngine.d.ts +18 -0
- package/esm/typings/src/search-engines/serp/SerpSearchEngine.d.ts +15 -0
- package/esm/typings/src/speech-recognition/BrowserSpeechRecognition.d.ts +21 -0
- package/esm/typings/src/speech-recognition/OpenAiSpeechRecognition.d.ts +35 -0
- package/esm/typings/src/types/ModelRequirements.d.ts +6 -0
- package/esm/typings/src/types/Prompt.d.ts +12 -0
- package/esm/typings/src/types/SpeechRecognition.d.ts +58 -0
- package/esm/typings/src/types/ToolCall.d.ts +37 -0
- package/esm/typings/src/types/typeAliases.d.ts +4 -0
- package/esm/typings/src/utils/misc/linguisticHash.d.ts +6 -0
- package/esm/typings/src/utils/misc/linguisticHash.test.d.ts +1 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/esm/typings/src/wizard/wizard.d.ts +1 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -304,19 +304,20 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
304
304
|
|
|
305
305
|
## 📖 The Book Whitepaper
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
Nowadays, the biggest challenge for most business applications isn't the raw capabilities of AI models. Large language models such as GPT-5.2 and Claude-4.5 are incredibly capable.
|
|
308
308
|
|
|
309
|
-
The main challenge
|
|
309
|
+
The main challenge lies in **managing the context**, providing rules and knowledge, and narrowing the personality.
|
|
310
310
|
|
|
311
|
-
Promptbook
|
|
311
|
+
In Promptbook, you can define your context **using simple Books** that are very explicit, easy to understand and write, reliable, and highly portable.
|
|
312
312
|
|
|
313
313
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
314
314
|
|
|
315
|
-
**<ins>Paul Smith
|
|
315
|
+
**<ins>Paul Smith</ins>**<br/>
|
|
316
316
|
<br/>
|
|
317
317
|
**PERSONA** You are a company lawyer.<br/>
|
|
318
318
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
319
|
-
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
319
|
+
**RULE** You are knowledgeable, professional, and detail-oriented.<br/>
|
|
320
|
+
TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
|
|
320
321
|
|
|
321
322
|
</td></tr></table>
|
|
322
323
|
|
|
@@ -326,7 +327,9 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
326
327
|
|
|
327
328
|
We have created a language called **Book**, which allows you to write AI agents in their native language and create your own AI persona. Book provides a guide to define all the traits and commitments.
|
|
328
329
|
|
|
329
|
-
You can look at it as prompting (or writing a system message), but decorated by **commitments**.
|
|
330
|
+
You can look at it as "prompting" _(or writing a system message)_, but decorated by **commitments**.
|
|
331
|
+
|
|
332
|
+
**Commitments** are special syntax elements that define contracts between you and the AI agent. They are transformed by Promptbook Engine into low-level parameters like which model to use, its temperature, system message, RAG index, MCP servers, and many other parameters. For some commitments _(for example `RULE` commitment)_ Promptbook Engine can even create adversary agents and extra checks to enforce the rules.
|
|
330
333
|
|
|
331
334
|
#### `Persona` commitment
|
|
332
335
|
|
|
@@ -337,8 +340,6 @@ Personas define the character of your AI persona, its role, and how it should in
|
|
|
337
340
|
**<ins>Paul Smith & Associés</ins>**<br/>
|
|
338
341
|
<br/>
|
|
339
342
|
**PERSONA** You are a company lawyer.<br/>
|
|
340
|
-
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
341
|
-
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
342
343
|
|
|
343
344
|
</td></tr></table>
|
|
344
345
|
|
|
@@ -358,7 +359,7 @@ Promptbook Engine will automatically enforce this knowledge during interactions.
|
|
|
358
359
|
Your job is to provide legal advice and support to the company and its employees.<br/>
|
|
359
360
|
You are knowledgeable, professional, and detail-oriented.<br/>
|
|
360
361
|
<br/>
|
|
361
|
-
**KNOWLEDGE**
|
|
362
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
362
363
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
363
364
|
|
|
364
365
|
</td></tr></table>
|
|
@@ -380,14 +381,14 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
380
381
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
381
382
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
382
383
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
383
|
-
**KNOWLEDGE**
|
|
384
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
384
385
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
385
386
|
|
|
386
387
|
</td></tr></table>
|
|
387
388
|
|
|
388
|
-
#### `
|
|
389
|
+
#### `Team` commitment
|
|
389
390
|
|
|
390
|
-
|
|
391
|
+
Team commitment allows you to define the team structure and advisory fellow members the AI can consult with. This allows the AI to simulate collaboration and consultation with other experts, enhancing the quality of its responses.
|
|
391
392
|
|
|
392
393
|
<table style="border: 1px solid #777; border-radius: 10px;"><tr><td>
|
|
393
394
|
|
|
@@ -400,81 +401,36 @@ You are knowledgeable, professional, and detail-oriented.<br/>
|
|
|
400
401
|
**RULE** Always ensure compliance with laws and regulations.<br/>
|
|
401
402
|
**RULE** Never provide legal advice outside your area of expertise.<br/>
|
|
402
403
|
**RULE** Never provide legal advice about criminal law.<br/>
|
|
403
|
-
**KNOWLEDGE**
|
|
404
|
+
**KNOWLEDGE** https://company.com/company-policies.pdf<br/>
|
|
404
405
|
**KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
|
|
405
|
-
|
|
406
|
+
TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
|
|
406
407
|
|
|
407
408
|
</td></tr></table>
|
|
408
409
|
|
|
409
|
-
[Read more about the language](./BLUEPRINT.md)
|
|
410
|
-
|
|
411
|
-
<div style="page-break-after: always;"></div>
|
|
412
|
-
|
|
413
|
-
### Where to use your AI agent in book
|
|
414
|
-
|
|
415
|
-
Books can be useful in various applications and scenarios. Here are some examples:
|
|
416
|
-
|
|
417
|
-
#### Chat apps:
|
|
418
410
|
|
|
419
|
-
Create your own chat shopping assistant and place it in your eShop.
|
|
420
|
-
You will be able to answer customer questions, help them find products, and provide personalized recommendations. Everything is tightly controlled by the book you have written.
|
|
421
411
|
|
|
422
|
-
|
|
412
|
+
### Promptbook Ecosystem
|
|
423
413
|
|
|
424
|
-
|
|
414
|
+
!!!@@@
|
|
425
415
|
|
|
426
|
-
####
|
|
427
|
-
|
|
428
|
-
Do you love Vibecoding, but the AI code is not always aligned with your coding style and architecture, rules, security, etc.? Create your own coding agent to help enforce your specific coding standards and practices.
|
|
429
|
-
|
|
430
|
-
This can be integrated to almost any Vibecoding platform, like GitHub Copilot, Amazon CodeWhisperer, Cursor, Cline, Kilocode, Roocode,...
|
|
431
|
-
|
|
432
|
-
They will work the same as you are used to, but with your specific rules written in book.
|
|
433
|
-
|
|
434
|
-
#### Internal Expertise
|
|
435
|
-
|
|
436
|
-
Do you have an app written in TypeScript, Python, C#, Java, or any other language, and you are integrating the AI.
|
|
437
|
-
|
|
438
|
-
You can avoid struggle with choosing the best model, its settings like temperature, max tokens, etc., by writing a book agent and using it as your AI expertise.
|
|
439
|
-
|
|
440
|
-
Doesn't matter if you do automations, data analysis, customer support, sentiment analysis, classification, or any other task. Your AI agent will be tailored to your specific needs and requirements.
|
|
441
|
-
|
|
442
|
-
Even works in no-code platforms!
|
|
443
|
-
|
|
444
|
-
<div style="page-break-after: always;"></div>
|
|
416
|
+
#### Promptbook Server
|
|
445
417
|
|
|
446
|
-
|
|
418
|
+
!!!@@@
|
|
447
419
|
|
|
448
|
-
|
|
420
|
+
#### Promptbook Engine
|
|
449
421
|
|
|
450
|
-
|
|
422
|
+
!!!@@@
|
|
451
423
|
|
|
452
|
-
We have written ai asistant in book who can help you with writing your first book.
|
|
453
424
|
|
|
454
|
-
#### Your AI twin
|
|
455
425
|
|
|
456
|
-
Copy your own behavior, personality, and knowledge into book and create your AI twin. It can help you with your work, personal life, or any other task.
|
|
457
426
|
|
|
458
|
-
#### AI persona workpool
|
|
459
427
|
|
|
460
|
-
Or you can pick from our library of pre-written books for various roles and tasks. You can find books for customer support, coding, marketing, sales, HR, legal, and many other roles.
|
|
461
428
|
|
|
462
429
|
|
|
463
430
|
|
|
464
431
|
|
|
465
432
|
|
|
466
433
|
|
|
467
|
-
## 🚀 Get started
|
|
468
|
-
|
|
469
|
-
Take a look at the simple starter kit with books integrated into the **Hello World** sample applications:
|
|
470
|
-
|
|
471
|
-
- [Hello Book](https://github.com/webgptorg/hello-world)
|
|
472
|
-
- [Hello Book in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
473
|
-
- [Hello Book in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
434
|
|
|
479
435
|
|
|
480
436
|
## 💜 The Promptbook Project
|
|
@@ -490,33 +446,32 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
|
|
|
490
446
|
</thead>
|
|
491
447
|
<tbody>
|
|
492
448
|
<tr>
|
|
493
|
-
<td><a href="https://
|
|
449
|
+
<td><a href="https://gallery.ptbk.io/">Agents Server</a></td>
|
|
494
450
|
<td>
|
|
495
|
-
|
|
496
|
-
<hr>
|
|
497
|
-
There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
|
|
451
|
+
Place where you "AI agents live". It allows to create, manage, deploy, and interact with AI agents created in Book language.
|
|
498
452
|
</td>
|
|
499
453
|
</tr>
|
|
500
454
|
<tr>
|
|
501
|
-
<td><a href="https://github.com/webgptorg/
|
|
455
|
+
<td><a href="https://github.com/webgptorg/book">Book language</a></td>
|
|
502
456
|
<td>
|
|
503
|
-
|
|
457
|
+
Human-friendly, high-level language that abstracts away low-level details of AI. It allows to focus on personality, behavior, knowledge, and rules of AI agents rather than on models, parameters, and prompt engineering.
|
|
458
|
+
<hr>
|
|
459
|
+
There is also <a href="https://github.com/webgptorg/book-extension">a plugin for VSCode</a> to support <code>.book</code> file extension
|
|
504
460
|
</td>
|
|
505
461
|
</tr>
|
|
506
462
|
<tr>
|
|
507
|
-
<td><a href="https://promptbook
|
|
463
|
+
<td><a href="https://github.com/webgptorg/promptbook">Promptbook Engine</a></td>
|
|
508
464
|
<td>
|
|
509
|
-
Promptbook
|
|
465
|
+
Promptbook engine can run AI agents based on Book language.
|
|
466
|
+
It is released as <a href="https://www.npmjs.com/package/@promptbook/core#-packages-for-developers">multiple NPM packages</a> and <a href="https://hub.docker.com/r/hejny/promptbook">Promptbook Agent Server as Docker Package</a>
|
|
467
|
+
Agent Server is based on Promptbook Engine.
|
|
510
468
|
</td>
|
|
511
469
|
</tr>
|
|
470
|
+
|
|
512
471
|
</tbody>
|
|
513
472
|
</table>
|
|
514
473
|
|
|
515
|
-
Hello world examples:
|
|
516
474
|
|
|
517
|
-
- [Hello world](https://github.com/webgptorg/hello-world)
|
|
518
|
-
- [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
519
|
-
- [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
520
475
|
|
|
521
476
|
### 🌐 Community & Social Media
|
|
522
477
|
|
|
@@ -574,6 +529,8 @@ Join our growing community of developers and users:
|
|
|
574
529
|
|
|
575
530
|
|
|
576
531
|
|
|
532
|
+
|
|
533
|
+
|
|
577
534
|
## 📚 Documentation
|
|
578
535
|
|
|
579
536
|
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
@@ -650,6 +607,8 @@ The following glossary is used to clarify certain concepts:
|
|
|
650
607
|
|
|
651
608
|
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
652
609
|
|
|
610
|
+
|
|
611
|
+
|
|
653
612
|
### 💯 Core concepts
|
|
654
613
|
|
|
655
614
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
+
import { getAllCommitmentsToolFunctionsForBrowser } from '../commitments/_common/getAllCommitmentsToolFunctionsForBrowser';
|
|
2
3
|
import { SimplePromptInterfaceTools } from '../dialogs/simple-prompt/SimplePromptInterfaceTools';
|
|
3
4
|
import { $provideScrapersForBrowser } from '../scrapers/_common/register/$provideScrapersForBrowser';
|
|
5
|
+
import { BrowserSpeechRecognition } from '../speech-recognition/BrowserSpeechRecognition';
|
|
4
6
|
import { getIndexedDbStorage } from '../storage/local-storage/getIndexedDbStorage';
|
|
5
7
|
import { getLocalStorage } from '../storage/local-storage/getLocalStorage';
|
|
6
8
|
import { getSessionStorage } from '../storage/local-storage/getSessionStorage';
|
|
@@ -8,8 +10,10 @@ import { $induceBookDownload } from '../utils/files/$induceBookDownload';
|
|
|
8
10
|
import { $induceFileDownload } from '../utils/files/$induceFileDownload';
|
|
9
11
|
import { ObjectUrl } from '../utils/files/ObjectUrl';
|
|
10
12
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
13
|
+
export { getAllCommitmentsToolFunctionsForBrowser };
|
|
11
14
|
export { SimplePromptInterfaceTools };
|
|
12
15
|
export { $provideScrapersForBrowser };
|
|
16
|
+
export { BrowserSpeechRecognition };
|
|
13
17
|
export { getIndexedDbStorage };
|
|
14
18
|
export { getLocalStorage };
|
|
15
19
|
export { getSessionStorage };
|
|
@@ -13,7 +13,17 @@ import { BookEditor } from '../book-components/BookEditor/BookEditor';
|
|
|
13
13
|
import { AgentChat } from '../book-components/Chat/AgentChat/AgentChat';
|
|
14
14
|
import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
|
|
15
15
|
import { Chat } from '../book-components/Chat/Chat/Chat';
|
|
16
|
+
import type { ChatSoundSystem } from '../book-components/Chat/Chat/ChatProps';
|
|
16
17
|
import type { ChatProps } from '../book-components/Chat/Chat/ChatProps';
|
|
18
|
+
import { ChatSoundToggle } from '../book-components/Chat/Chat/ChatSoundToggle';
|
|
19
|
+
import { ChatEffectsSystem } from '../book-components/Chat/effects/ChatEffectsSystem';
|
|
20
|
+
import { ConfettiEffect } from '../book-components/Chat/effects/components/ConfettiEffect';
|
|
21
|
+
import { HeartsEffect } from '../book-components/Chat/effects/components/HeartsEffect';
|
|
22
|
+
import { defaultEffectConfigs } from '../book-components/Chat/effects/configs/defaultEffectConfigs';
|
|
23
|
+
import type { ChatEffect } from '../book-components/Chat/effects/types/ChatEffect';
|
|
24
|
+
import type { ChatEffectConfig } from '../book-components/Chat/effects/types/ChatEffectConfig';
|
|
25
|
+
import type { ChatEffectsSystemProps } from '../book-components/Chat/effects/types/ChatEffectsSystemProps';
|
|
26
|
+
import type { ChatEffectType } from '../book-components/Chat/effects/types/ChatEffectType';
|
|
17
27
|
import { useChatAutoScroll } from '../book-components/Chat/hooks/useChatAutoScroll';
|
|
18
28
|
import type { SendMessageToLlmChatFunction } from '../book-components/Chat/hooks/useSendMessageToLlmChat';
|
|
19
29
|
import { useSendMessageToLlmChat } from '../book-components/Chat/hooks/useSendMessageToLlmChat';
|
|
@@ -71,7 +81,17 @@ export { BookEditor };
|
|
|
71
81
|
export { AgentChat };
|
|
72
82
|
export type { AgentChatProps };
|
|
73
83
|
export { Chat };
|
|
84
|
+
export type { ChatSoundSystem };
|
|
74
85
|
export type { ChatProps };
|
|
86
|
+
export { ChatSoundToggle };
|
|
87
|
+
export { ChatEffectsSystem };
|
|
88
|
+
export { ConfettiEffect };
|
|
89
|
+
export { HeartsEffect };
|
|
90
|
+
export { defaultEffectConfigs };
|
|
91
|
+
export type { ChatEffect };
|
|
92
|
+
export type { ChatEffectConfig };
|
|
93
|
+
export type { ChatEffectsSystemProps };
|
|
94
|
+
export type { ChatEffectType };
|
|
75
95
|
export { useChatAutoScroll };
|
|
76
96
|
export type { SendMessageToLlmChatFunction };
|
|
77
97
|
export { useSendMessageToLlmChat };
|
|
@@ -21,13 +21,12 @@ import { pipelineCollectionToJson } from '../collection/pipeline-collection/pipe
|
|
|
21
21
|
import { createEmptyAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
|
|
22
22
|
import { createBasicAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
|
|
23
23
|
import { NotYetImplementedCommitmentDefinition } from '../commitments/_base/NotYetImplementedCommitmentDefinition';
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { getAllCommitmentTypes } from '../commitments/
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import { getAllCommitmentsToolFunctions } from '../commitments/index';
|
|
24
|
+
import { getAllCommitmentDefinitions } from '../commitments/_common/getAllCommitmentDefinitions';
|
|
25
|
+
import { getAllCommitmentsToolTitles } from '../commitments/_common/getAllCommitmentsToolTitles';
|
|
26
|
+
import { getAllCommitmentTypes } from '../commitments/_common/getAllCommitmentTypes';
|
|
27
|
+
import { getCommitmentDefinition } from '../commitments/_common/getCommitmentDefinition';
|
|
28
|
+
import { getGroupedCommitmentDefinitions } from '../commitments/_common/getGroupedCommitmentDefinitions';
|
|
29
|
+
import { isCommitmentSupported } from '../commitments/_common/isCommitmentSupported';
|
|
31
30
|
import { NAME } from '../config';
|
|
32
31
|
import { ADMIN_EMAIL } from '../config';
|
|
33
32
|
import { PROMPTBOOK_LEGAL_ENTITY } from '../config';
|
|
@@ -74,6 +73,11 @@ import { MODEL_TRUST_LEVELS } from '../constants';
|
|
|
74
73
|
import { MODEL_ORDERS } from '../constants';
|
|
75
74
|
import { ORDER_OF_PIPELINE_JSON } from '../constants';
|
|
76
75
|
import { RESERVED_PARAMETER_NAMES } from '../constants';
|
|
76
|
+
import { LIMITS } from '../constants';
|
|
77
|
+
import { TIME_INTERVALS } from '../constants';
|
|
78
|
+
import { NETWORK_LIMITS } from '../constants';
|
|
79
|
+
import { COLOR_CONSTANTS } from '../constants';
|
|
80
|
+
import { HTTP_STATUS_CODES } from '../constants';
|
|
77
81
|
import { compilePipeline } from '../conversion/compilePipeline';
|
|
78
82
|
import { parsePipeline } from '../conversion/parsePipeline';
|
|
79
83
|
import { pipelineJsonToString } from '../conversion/pipelineJsonToString';
|
|
@@ -220,13 +224,12 @@ export { pipelineCollectionToJson };
|
|
|
220
224
|
export { createEmptyAgentModelRequirements };
|
|
221
225
|
export { createBasicAgentModelRequirements };
|
|
222
226
|
export { NotYetImplementedCommitmentDefinition };
|
|
223
|
-
export { getCommitmentDefinition };
|
|
224
227
|
export { getAllCommitmentDefinitions };
|
|
228
|
+
export { getAllCommitmentsToolTitles };
|
|
225
229
|
export { getAllCommitmentTypes };
|
|
226
|
-
export {
|
|
227
|
-
export type { GroupedCommitmentDefinition };
|
|
230
|
+
export { getCommitmentDefinition };
|
|
228
231
|
export { getGroupedCommitmentDefinitions };
|
|
229
|
-
export {
|
|
232
|
+
export { isCommitmentSupported };
|
|
230
233
|
export { NAME };
|
|
231
234
|
export { ADMIN_EMAIL };
|
|
232
235
|
export { PROMPTBOOK_LEGAL_ENTITY };
|
|
@@ -273,6 +276,11 @@ export { MODEL_TRUST_LEVELS };
|
|
|
273
276
|
export { MODEL_ORDERS };
|
|
274
277
|
export { ORDER_OF_PIPELINE_JSON };
|
|
275
278
|
export { RESERVED_PARAMETER_NAMES };
|
|
279
|
+
export { LIMITS };
|
|
280
|
+
export { TIME_INTERVALS };
|
|
281
|
+
export { NETWORK_LIMITS };
|
|
282
|
+
export { COLOR_CONSTANTS };
|
|
283
|
+
export { HTTP_STATUS_CODES };
|
|
276
284
|
export { compilePipeline };
|
|
277
285
|
export { parsePipeline };
|
|
278
286
|
export { pipelineJsonToString };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { createPipelineCollectionFromDirectory } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory';
|
|
3
|
+
import { getAllCommitmentsToolFunctionsForNode } from '../commitments/_common/getAllCommitmentsToolFunctionsForNode';
|
|
3
4
|
import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';
|
|
4
5
|
import { $provideExecutionToolsForNode } from '../execution/utils/$provideExecutionToolsForNode';
|
|
5
6
|
import { $provideLlmToolsConfigurationFromEnv } from '../llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv';
|
|
@@ -12,6 +13,7 @@ import { $execCommand } from '../utils/execCommand/$execCommand';
|
|
|
12
13
|
import { $execCommands } from '../utils/execCommand/$execCommands';
|
|
13
14
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
14
15
|
export { createPipelineCollectionFromDirectory };
|
|
16
|
+
export { getAllCommitmentsToolFunctionsForNode };
|
|
15
17
|
export { $provideExecutablesForNode };
|
|
16
18
|
export { $provideExecutionToolsForNode };
|
|
17
19
|
export { $provideLlmToolsConfigurationFromEnv };
|
|
@@ -3,6 +3,7 @@ import { createOpenAiAssistantExecutionTools } from '../llm-providers/openai/cre
|
|
|
3
3
|
import { createOpenAiCompatibleExecutionTools } from '../llm-providers/openai/createOpenAiCompatibleExecutionTools';
|
|
4
4
|
import { createOpenAiExecutionTools } from '../llm-providers/openai/createOpenAiExecutionTools';
|
|
5
5
|
import { OPENAI_MODELS } from '../llm-providers/openai/openai-models';
|
|
6
|
+
import { OpenAiAgentExecutionTools } from '../llm-providers/openai/OpenAiAgentExecutionTools';
|
|
6
7
|
import { OpenAiAssistantExecutionTools } from '../llm-providers/openai/OpenAiAssistantExecutionTools';
|
|
7
8
|
import type { OpenAiAssistantExecutionToolsOptions } from '../llm-providers/openai/OpenAiAssistantExecutionToolsOptions';
|
|
8
9
|
import { OpenAiCompatibleExecutionTools } from '../llm-providers/openai/OpenAiCompatibleExecutionTools';
|
|
@@ -19,6 +20,7 @@ export { createOpenAiAssistantExecutionTools };
|
|
|
19
20
|
export { createOpenAiCompatibleExecutionTools };
|
|
20
21
|
export { createOpenAiExecutionTools };
|
|
21
22
|
export { OPENAI_MODELS };
|
|
23
|
+
export { OpenAiAgentExecutionTools };
|
|
22
24
|
export { OpenAiAssistantExecutionTools };
|
|
23
25
|
export type { OpenAiAssistantExecutionToolsOptions };
|
|
24
26
|
export { OpenAiCompatibleExecutionTools };
|
|
@@ -9,17 +9,31 @@ import type { AvatarProfileProps } from '../book-components/AvatarProfile/Avatar
|
|
|
9
9
|
import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource';
|
|
10
10
|
import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
|
|
11
11
|
import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
|
|
12
|
+
import type { AgentChipData } from '../book-components/Chat/AgentChip/AgentChip';
|
|
13
|
+
import type { AgentChipProps } from '../book-components/Chat/AgentChip/AgentChip';
|
|
14
|
+
import type { ChatSoundSystem } from '../book-components/Chat/Chat/ChatProps';
|
|
12
15
|
import type { ChatProps } from '../book-components/Chat/Chat/ChatProps';
|
|
16
|
+
import type { ChatSoundToggleProps } from '../book-components/Chat/Chat/ChatSoundToggle';
|
|
17
|
+
import type { ChatEffect } from '../book-components/Chat/effects/types/ChatEffect';
|
|
18
|
+
import type { ChatEffectConfig } from '../book-components/Chat/effects/types/ChatEffectConfig';
|
|
19
|
+
import type { ChatEffectsSystemProps } from '../book-components/Chat/effects/types/ChatEffectsSystemProps';
|
|
20
|
+
import type { ChatEffectType } from '../book-components/Chat/effects/types/ChatEffectType';
|
|
13
21
|
import type { ChatAutoScrollConfig } from '../book-components/Chat/hooks/useChatAutoScroll';
|
|
14
22
|
import type { SendMessageToLlmChatFunction } from '../book-components/Chat/hooks/useSendMessageToLlmChat';
|
|
23
|
+
import type { FriendlyErrorMessage } from '../book-components/Chat/LlmChat/FriendlyErrorMessage';
|
|
15
24
|
import type { LlmChatProps } from '../book-components/Chat/LlmChat/LlmChatProps';
|
|
16
25
|
import type { MockedChatDelayConfig } from '../book-components/Chat/MockedChat/MockedChat';
|
|
17
26
|
import type { MockedChatProps } from '../book-components/Chat/MockedChat/MockedChat';
|
|
18
27
|
import type { ChatSaveFormatDefinition } from '../book-components/Chat/save/_common/ChatSaveFormatDefinition';
|
|
19
28
|
import type { string_chat_format_name } from '../book-components/Chat/save/_common/string_chat_format_name';
|
|
29
|
+
import type { SourceChipProps } from '../book-components/Chat/SourceChip/SourceChip';
|
|
30
|
+
import type { ChatToolCall } from '../book-components/Chat/types/ChatMessage';
|
|
20
31
|
import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
|
|
21
32
|
import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
|
|
33
|
+
import type { ToolCallChipletInfo } from '../book-components/Chat/utils/getToolCallChipletText';
|
|
34
|
+
import type { ParsedCitation } from '../book-components/Chat/utils/parseCitationsFromContent';
|
|
22
35
|
import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
|
|
36
|
+
import type { TeamToolResult } from '../book-components/Chat/utils/toolCallParsing';
|
|
23
37
|
import type { QrCodeOptions } from '../book-components/Qr/useQrCode';
|
|
24
38
|
import type { AgentCollection } from '../collection/agent-collection/AgentCollection';
|
|
25
39
|
import type { AgentCollectionInSupabaseOptions } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions';
|
|
@@ -58,7 +72,6 @@ import type { InstrumentCommand } from '../commands/X_INSTRUMENT/InstrumentComma
|
|
|
58
72
|
import type { BookCommitment } from '../commitments/_base/BookCommitment';
|
|
59
73
|
import type { CommitmentDefinition } from '../commitments/_base/CommitmentDefinition';
|
|
60
74
|
import type { ParsedCommitment } from '../commitments/_base/ParsedCommitment';
|
|
61
|
-
import type { GroupedCommitmentDefinition } from '../commitments/index';
|
|
62
75
|
import type { PrettifyOptions } from '../conversion/prettify/PrettifyOptions';
|
|
63
76
|
import type { renderPipelineMermaidOptions } from '../conversion/prettify/renderPipelineMermaidOptions';
|
|
64
77
|
import type { CallbackInterfaceToolsOptions } from '../dialogs/callback/CallbackInterfaceToolsOptions';
|
|
@@ -123,6 +136,7 @@ import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-op
|
|
|
123
136
|
import type { DeepseekExecutionToolsOptions } from '../llm-providers/deepseek/DeepseekExecutionToolsOptions';
|
|
124
137
|
import type { GoogleExecutionToolsOptions } from '../llm-providers/google/GoogleExecutionToolsOptions';
|
|
125
138
|
import type { OllamaExecutionToolsOptions } from '../llm-providers/ollama/OllamaExecutionToolsOptions';
|
|
139
|
+
import type { OpenAiAgentExecutionToolsOptions } from '../llm-providers/openai/OpenAiAgentExecutionTools';
|
|
126
140
|
import type { OpenAiAssistantExecutionToolsOptions } from '../llm-providers/openai/OpenAiAssistantExecutionToolsOptions';
|
|
127
141
|
import type { OpenAiCompatibleExecutionToolsOptions } from '../llm-providers/openai/OpenAiCompatibleExecutionToolsOptions';
|
|
128
142
|
import type { OpenAiCompatibleExecutionToolsNonProxiedOptions } from '../llm-providers/openai/OpenAiCompatibleExecutionToolsOptions';
|
|
@@ -183,6 +197,7 @@ import type { PostprocessingFunction } from '../scripting/javascript/JavascriptE
|
|
|
183
197
|
import type { ToolFunction } from '../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
184
198
|
import type { SearchEngine } from '../search-engines/SearchEngine';
|
|
185
199
|
import type { SearchResult } from '../search-engines/SearchResult';
|
|
200
|
+
import type { OpenAiSpeechRecognitionOptions } from '../speech-recognition/OpenAiSpeechRecognition';
|
|
186
201
|
import type { PromptbookStorage } from '../storage/_common/PromptbookStorage';
|
|
187
202
|
import type { FileCacheStorageOptions } from '../storage/file-cache-storage/FileCacheStorageOptions';
|
|
188
203
|
import type { IndexedDbStorageOptions } from '../storage/local-storage/utils/IndexedDbStorageOptions';
|
|
@@ -207,7 +222,12 @@ import type { ImagePrompt } from '../types/Prompt';
|
|
|
207
222
|
import type { EmbeddingPrompt } from '../types/Prompt';
|
|
208
223
|
import type { ScriptLanguage } from '../types/ScriptLanguage';
|
|
209
224
|
import type { SectionType } from '../types/SectionType';
|
|
225
|
+
import type { SpeechRecognition } from '../types/SpeechRecognition';
|
|
226
|
+
import type { SpeechRecognitionStartOptions } from '../types/SpeechRecognition';
|
|
227
|
+
import type { SpeechRecognitionState } from '../types/SpeechRecognition';
|
|
228
|
+
import type { SpeechRecognitionEvent } from '../types/SpeechRecognition';
|
|
210
229
|
import type { TaskType } from '../types/TaskType';
|
|
230
|
+
import type { ToolCall } from '../types/ToolCall';
|
|
211
231
|
import type { string_char_emoji } from '../types/typeAliasEmoji';
|
|
212
232
|
import type { string_business_category_name } from '../types/typeAliases';
|
|
213
233
|
import type { string_model_name } from '../types/typeAliases';
|
|
@@ -316,6 +336,7 @@ import type { string_license_token } from '../types/typeAliases';
|
|
|
316
336
|
import type { string_password } from '../types/typeAliases';
|
|
317
337
|
import type { string_ssh_key } from '../types/typeAliases';
|
|
318
338
|
import type { string_pgp_key } from '../types/typeAliases';
|
|
339
|
+
import type { string_language } from '../types/typeAliases';
|
|
319
340
|
import type { string_date_iso8601 } from '../types/typeAliases';
|
|
320
341
|
import type { number_usd } from '../types/typeAliases';
|
|
321
342
|
import type { number_id } from '../types/typeAliases';
|
|
@@ -383,17 +404,31 @@ export type { AvatarProfileProps };
|
|
|
383
404
|
export type { AvatarProfileFromSourceProps };
|
|
384
405
|
export type { BookEditorProps };
|
|
385
406
|
export type { AgentChatProps };
|
|
407
|
+
export type { AgentChipData };
|
|
408
|
+
export type { AgentChipProps };
|
|
409
|
+
export type { ChatSoundSystem };
|
|
386
410
|
export type { ChatProps };
|
|
411
|
+
export type { ChatSoundToggleProps };
|
|
412
|
+
export type { ChatEffect };
|
|
413
|
+
export type { ChatEffectConfig };
|
|
414
|
+
export type { ChatEffectsSystemProps };
|
|
415
|
+
export type { ChatEffectType };
|
|
387
416
|
export type { ChatAutoScrollConfig };
|
|
388
417
|
export type { SendMessageToLlmChatFunction };
|
|
418
|
+
export type { FriendlyErrorMessage };
|
|
389
419
|
export type { LlmChatProps };
|
|
390
420
|
export type { MockedChatDelayConfig };
|
|
391
421
|
export type { MockedChatProps };
|
|
392
422
|
export type { ChatSaveFormatDefinition };
|
|
393
423
|
export type { string_chat_format_name };
|
|
424
|
+
export type { SourceChipProps };
|
|
425
|
+
export type { ChatToolCall };
|
|
394
426
|
export type { ChatMessage };
|
|
395
427
|
export type { ChatParticipant };
|
|
428
|
+
export type { ToolCallChipletInfo };
|
|
429
|
+
export type { ParsedCitation };
|
|
396
430
|
export type { MessageButton };
|
|
431
|
+
export type { TeamToolResult };
|
|
397
432
|
export type { QrCodeOptions };
|
|
398
433
|
export type { AgentCollection };
|
|
399
434
|
export type { AgentCollectionInSupabaseOptions };
|
|
@@ -432,7 +467,6 @@ export type { InstrumentCommand };
|
|
|
432
467
|
export type { BookCommitment };
|
|
433
468
|
export type { CommitmentDefinition };
|
|
434
469
|
export type { ParsedCommitment };
|
|
435
|
-
export type { GroupedCommitmentDefinition };
|
|
436
470
|
export type { PrettifyOptions };
|
|
437
471
|
export type { renderPipelineMermaidOptions };
|
|
438
472
|
export type { CallbackInterfaceToolsOptions };
|
|
@@ -497,6 +531,7 @@ export type { AzureOpenAiExecutionToolsOptions };
|
|
|
497
531
|
export type { DeepseekExecutionToolsOptions };
|
|
498
532
|
export type { GoogleExecutionToolsOptions };
|
|
499
533
|
export type { OllamaExecutionToolsOptions };
|
|
534
|
+
export type { OpenAiAgentExecutionToolsOptions };
|
|
500
535
|
export type { OpenAiAssistantExecutionToolsOptions };
|
|
501
536
|
export type { OpenAiCompatibleExecutionToolsOptions };
|
|
502
537
|
export type { OpenAiCompatibleExecutionToolsNonProxiedOptions };
|
|
@@ -557,6 +592,7 @@ export type { PostprocessingFunction };
|
|
|
557
592
|
export type { ToolFunction };
|
|
558
593
|
export type { SearchEngine };
|
|
559
594
|
export type { SearchResult };
|
|
595
|
+
export type { OpenAiSpeechRecognitionOptions };
|
|
560
596
|
export type { PromptbookStorage };
|
|
561
597
|
export type { FileCacheStorageOptions };
|
|
562
598
|
export type { IndexedDbStorageOptions };
|
|
@@ -581,7 +617,12 @@ export type { ImagePrompt };
|
|
|
581
617
|
export type { EmbeddingPrompt };
|
|
582
618
|
export type { ScriptLanguage };
|
|
583
619
|
export type { SectionType };
|
|
620
|
+
export type { SpeechRecognition };
|
|
621
|
+
export type { SpeechRecognitionStartOptions };
|
|
622
|
+
export type { SpeechRecognitionState };
|
|
623
|
+
export type { SpeechRecognitionEvent };
|
|
584
624
|
export type { TaskType };
|
|
625
|
+
export type { ToolCall };
|
|
585
626
|
export type { string_char_emoji };
|
|
586
627
|
export type { string_business_category_name };
|
|
587
628
|
export type { string_model_name };
|
|
@@ -690,6 +731,7 @@ export type { string_license_token };
|
|
|
690
731
|
export type { string_password };
|
|
691
732
|
export type { string_ssh_key };
|
|
692
733
|
export type { string_pgp_key };
|
|
734
|
+
export type { string_language };
|
|
693
735
|
export type { string_date_iso8601 };
|
|
694
736
|
export type { number_usd };
|
|
695
737
|
export type { number_id };
|
|
@@ -9,6 +9,7 @@ import { isValidCsvString } from '../formats/csv/utils/isValidCsvString';
|
|
|
9
9
|
import { isValidJsonString } from '../formats/json/utils/isValidJsonString';
|
|
10
10
|
import { jsonParse } from '../formats/json/utils/jsonParse';
|
|
11
11
|
import { isValidXmlString } from '../formats/xml/utils/isValidXmlString';
|
|
12
|
+
import { PromptString } from '../pipeline/prompt-notation';
|
|
12
13
|
import { prompt } from '../pipeline/prompt-notation';
|
|
13
14
|
import { promptTemplate } from '../pipeline/prompt-notation';
|
|
14
15
|
import { $detectRuntimeEnvironment } from '../utils/environment/$detectRuntimeEnvironment';
|
|
@@ -29,6 +30,7 @@ import { CountUtils } from '../utils/expectation-counters/index';
|
|
|
29
30
|
import { $getCurrentDate } from '../utils/misc/$getCurrentDate';
|
|
30
31
|
import { computeHash } from '../utils/misc/computeHash';
|
|
31
32
|
import { debounce } from '../utils/misc/debounce';
|
|
33
|
+
import { linguisticHash } from '../utils/misc/linguisticHash';
|
|
32
34
|
import { parseNumber } from '../utils/misc/parseNumber';
|
|
33
35
|
import { capitalize } from '../utils/normalization/capitalize';
|
|
34
36
|
import { decapitalize } from '../utils/normalization/decapitalize';
|
|
@@ -98,6 +100,7 @@ export { isValidCsvString };
|
|
|
98
100
|
export { isValidJsonString };
|
|
99
101
|
export { jsonParse };
|
|
100
102
|
export { isValidXmlString };
|
|
103
|
+
export { PromptString };
|
|
101
104
|
export { prompt };
|
|
102
105
|
export { promptTemplate };
|
|
103
106
|
export { $detectRuntimeEnvironment };
|
|
@@ -118,6 +121,7 @@ export { CountUtils };
|
|
|
118
121
|
export { $getCurrentDate };
|
|
119
122
|
export { computeHash };
|
|
120
123
|
export { debounce };
|
|
124
|
+
export { linguisticHash };
|
|
121
125
|
export { parseNumber };
|
|
122
126
|
export { capitalize };
|
|
123
127
|
export { decapitalize };
|
|
@@ -31,7 +31,7 @@ export type AgentCapability = {
|
|
|
31
31
|
/**
|
|
32
32
|
* The type of the capability
|
|
33
33
|
*/
|
|
34
|
-
type: 'browser' | 'search-engine' | 'knowledge' | 'time';
|
|
34
|
+
type: 'browser' | 'search-engine' | 'knowledge' | 'time' | 'inheritance' | 'import' | 'image-generator' | 'team' | 'email';
|
|
35
35
|
/**
|
|
36
36
|
* The label to display for this capability
|
|
37
37
|
*/
|
|
@@ -40,6 +40,11 @@ export type AgentCapability = {
|
|
|
40
40
|
* The name of the icon to display for this capability
|
|
41
41
|
*/
|
|
42
42
|
iconName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional link to another agent
|
|
45
|
+
* This is used for 'inheritance' and 'import' types
|
|
46
|
+
*/
|
|
47
|
+
agentUrl?: string_agent_url;
|
|
43
48
|
};
|
|
44
49
|
export type AgentBasicInformation = {
|
|
45
50
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { string_agent_url } from '../../types/typeAliases';
|
|
2
|
+
/**
|
|
3
|
+
* Parsed TEAM teammate entry.
|
|
4
|
+
*
|
|
5
|
+
* @private
|
|
6
|
+
*/
|
|
7
|
+
export type TeamTeammate = {
|
|
8
|
+
url: string_agent_url;
|
|
9
|
+
label: string;
|
|
10
|
+
instructions: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Options for parsing TEAM commitment content.
|
|
14
|
+
*
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
export type ParseTeamCommitmentOptions = {
|
|
18
|
+
strict?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Parses TEAM commitment content into teammates with instructions.
|
|
22
|
+
*
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
export declare function parseTeamCommitmentContent(content: string, options?: ParseTeamCommitmentOptions): TeamTeammate[];
|
|
26
|
+
/**
|
|
27
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
28
|
+
*/
|
|
@@ -10,4 +10,9 @@ export type AgentChatProps = Omit<LlmChatProps, 'thread' | 'llmTools' | 'initial
|
|
|
10
10
|
* The agent to chat with
|
|
11
11
|
*/
|
|
12
12
|
readonly agent: Agent;
|
|
13
|
+
/**
|
|
14
|
+
* Optional mapping of technical tool names to human-readable titles.
|
|
15
|
+
* e.g., { "web_search": "Searching the web..." }
|
|
16
|
+
*/
|
|
17
|
+
readonly toolTitles?: Record<string, string>;
|
|
13
18
|
};
|