@promptbook/types 0.112.0-40 → 0.112.0-41

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.
Files changed (52) hide show
  1. package/README.md +23 -21
  2. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +8 -2
  3. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +0 -10
  4. package/esm/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  5. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +46 -0
  6. package/esm/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  7. package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +1 -1
  8. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  9. package/esm/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  10. package/esm/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  11. package/esm/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  12. package/esm/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  13. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  14. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  15. package/esm/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  16. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +7 -1
  17. package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +52 -0
  18. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +128 -0
  19. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +3 -3
  20. package/esm/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +54 -0
  21. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  22. package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +28 -0
  23. package/esm/src/types/number_usd.d.ts +1 -1
  24. package/esm/src/types/string_parameter_name.d.ts +2 -2
  25. package/esm/src/types/typeAliases.d.ts +2 -2
  26. package/esm/src/version.d.ts +1 -1
  27. package/package.json +2 -2
  28. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +8 -2
  29. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +0 -10
  30. package/umd/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  31. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +46 -0
  32. package/umd/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  33. package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +1 -1
  34. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  35. package/umd/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  36. package/umd/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  37. package/umd/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  38. package/umd/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  39. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  40. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  41. package/umd/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  42. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +7 -1
  43. package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +52 -0
  44. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +128 -0
  45. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +3 -3
  46. package/umd/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +54 -0
  47. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  48. package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +28 -0
  49. package/umd/src/types/number_usd.d.ts +1 -1
  50. package/umd/src/types/string_parameter_name.d.ts +2 -2
  51. package/umd/src/types/typeAliases.d.ts +2 -2
  52. package/umd/src/version.d.ts +1 -1
@@ -0,0 +1,28 @@
1
+ import OpenAI from 'openai';
2
+ import type { AvailableModel } from '../../../execution/AvailableModel';
3
+ import type { ChatPromptResult } from '../../../execution/PromptResult';
4
+ import type { Usage } from '../../../execution/Usage';
5
+ import type { Prompt } from '../../../types/Prompt';
6
+ import type { string_markdown_text, string_title } from '../../../types/typeAliases';
7
+ import type { computeOpenAiUsage } from '../computeOpenAiUsage';
8
+ import type { OpenAiCompatibleExecutionToolsNonProxiedOptions } from '../OpenAiCompatibleExecutionToolsOptions';
9
+ /**
10
+ * Type describing dependencies needed by `callOpenAiCompatibleChatModel`.
11
+ */
12
+ type CallOpenAiCompatibleChatModelOptions = {
13
+ readonly prompt: Prompt;
14
+ readonly onProgress: (chunk: ChatPromptResult) => void;
15
+ readonly title: string_title & string_markdown_text;
16
+ readonly executionToolsOptions: OpenAiCompatibleExecutionToolsNonProxiedOptions;
17
+ readonly getClient: () => Promise<OpenAI>;
18
+ readonly executeRateLimitedRequest: <T>(requestFn: () => Promise<T>) => Promise<T>;
19
+ readonly computeUsage: (...args: Parameters<typeof computeOpenAiUsage>) => Usage;
20
+ readonly getDefaultChatModel: () => AvailableModel;
21
+ };
22
+ /**
23
+ * Calls the OpenAI-compatible chat model flow, including tool execution and unsupported-parameter retries.
24
+ *
25
+ * @private function of `OpenAiCompatibleExecutionTools`
26
+ */
27
+ export declare function callOpenAiCompatibleChatModel(options: CallOpenAiCompatibleChatModelOptions): Promise<ChatPromptResult>;
28
+ export {};
@@ -2,7 +2,7 @@
2
2
  * Semantic helper for US Dollars
3
3
  */
4
4
  export type number_usd = number;
5
- export type { number_bytes, number_gigabytes, number_kilobytes, number_megabytes, number_terabytes } from './number_bytes';
5
+ export type { number_bytes, number_gigabytes, number_kilobytes, number_megabytes, number_terabytes, } from './number_bytes';
6
6
  export type { number_id, number_linecol_number, number_tokens } from './number_id';
7
7
  export type { number_likeness } from './number_likeness';
8
8
  export type { number_days, number_hours, number_milliseconds, number_minutes, number_months, number_seconds, number_weeks, number_years, } from './number_milliseconds';
@@ -4,10 +4,10 @@
4
4
  * The concrete type declarations live in focused modules under `src/types`.
5
5
  */
6
6
  export type { InputParameters, Parameters, ReservedParameters } from './Parameters';
7
- export type { string_agent_hash, string_agent_name, string_agent_name_in_book, string_agent_permanent_id } from './string_agent_name';
7
+ export type { string_agent_hash, string_agent_name, string_agent_name_in_book, string_agent_permanent_id, } from './string_agent_name';
8
8
  export type { string_business_category_name } from './string_business_category_name';
9
9
  export type { string_model_name } from './string_model_name';
10
- export type { string_name, string_parameter_name, string_parameter_value, string_reserved_parameter_name } from './string_name';
10
+ export type { string_name, string_parameter_name, string_parameter_value, string_reserved_parameter_name, } from './string_name';
11
11
  export type { string_page, string_char } from './string_page';
12
12
  export type { string_chat_prompt, string_completion_prompt, string_prompt, string_prompt_image, string_system_message, string_template, string_text_prompt, } from './string_prompt';
13
13
  export type { string_persona_description, string_model_description } from './string_persona_description';
@@ -6,10 +6,10 @@ export type { string_base64, string_base_url, string_data_url, string_domain, st
6
6
  export type { string_knowledge_source_content, string_knowledge_source_link } from './string_knowledge_source_content';
7
7
  export type { string_attribute, string_attribute_value_scope, string_color, string_javascript_name, string_legal_entity, string_license, string_person_firstname, string_person_fullname, string_person_lastname, string_person_profile, string_postprocessing_function_name, string_translate_language, string_translate_name, string_translate_name_not_normalized, } from './string_person_fullname';
8
8
  export type { id, string_app_id, string_date_iso8601, string_language, string_license_token, string_password, string_pgp_key, string_promptbook_token, string_ssh_key, string_token, string_user_id, task_id, } from './string_token';
9
- export type { number_id, number_linecol_number, number_tokens, } from './number_id';
9
+ export type { number_id, number_linecol_number, number_tokens } from './number_id';
10
10
  export type { number_integer, number_negative, number_port, number_positive } from './number_positive';
11
11
  export type { number_model_temperature, number_percent, number_seed } from './number_percent';
12
12
  export type { number_likeness } from './number_likeness';
13
13
  export type { number_weeks, number_days, number_hours, number_milliseconds, number_minutes, number_months, number_seconds, number_years, } from './number_milliseconds';
14
- export type { number_bytes, number_gigabytes, number_kilobytes, number_megabytes, number_terabytes } from './number_bytes';
14
+ export type { number_bytes, number_gigabytes, number_kilobytes, number_megabytes, number_terabytes, } from './number_bytes';
15
15
  export type { number_usd } from './number_usd';
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.112.0-39`).
18
+ * It follows semantic versioning (e.g., `0.112.0-40`).
19
19
  *
20
20
  * @generated
21
21
  */