briyah 2.0.0 → 2.0.2
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 +263 -74
- package/data/common/config/markup +1 -1
- package/data/common/config/model_prices.json +46369 -46361
- package/data/common/config/rpg_models.json +60 -0
- package/data/common/prompts/narrator/create_chapter.prompt +12 -1
- package/data/common/prompts/pdf_converter/convert_pdf_page.prompt +8 -1
- package/data/common/prompts/perceive.prompt +287 -291
- package/data/packs/acts/agents/character-guide.json +6 -0
- package/data/packs/acts/agents/discipleship-mentor.json +6 -0
- package/data/packs/acts/agents/mentor-coach.json +6 -0
- package/data/packs/acts/agents/student.json +13 -0
- package/data/packs/acts/agents/table-moderator.json +6 -0
- package/data/packs/acts/artifacts/chapter-01-acts-1.md +405 -0
- package/data/packs/acts/artifacts/chapter-02-acts-2.md +443 -0
- package/data/packs/acts/artifacts/chapter-03-acts-3.md +409 -0
- package/data/packs/acts/artifacts/chapter-04-acts-4.md +438 -0
- package/data/packs/acts/artifacts/chapter-05-acts-5.md +434 -0
- package/data/packs/acts/artifacts/chapter-06-acts-6.md +441 -0
- package/data/packs/acts/artifacts/chapter-07-acts-7.md +472 -0
- package/data/packs/acts/artifacts/chapter-08-acts-8.md +512 -0
- package/data/packs/acts/artifacts/chapter-09-acts-9.md +346 -0
- package/data/packs/acts/artifacts/chapter-10-acts-10.md +367 -0
- package/data/packs/acts/artifacts/chapter-11-acts-11.md +391 -0
- package/data/packs/acts/artifacts/chapter-12-acts-12.md +390 -0
- package/data/packs/acts/artifacts/chapter-13-acts-13.md +388 -0
- package/data/packs/acts/artifacts/chapter-14-acts-14.md +466 -0
- package/data/packs/acts/artifacts/chapter-15-acts-15.md +413 -0
- package/data/packs/acts/artifacts/chapter-16-acts-16.md +585 -0
- package/data/packs/acts/artifacts/chapter-17-acts-17.md +428 -0
- package/data/packs/acts/artifacts/chapter-18-acts-18.md +486 -0
- package/data/packs/acts/artifacts/chapter-19-acts-19.md +461 -0
- package/data/packs/acts/artifacts/chapter-20-acts-20.md +389 -0
- package/data/packs/acts/artifacts/chapter-21-acts-21.md +452 -0
- package/data/packs/acts/artifacts/chapter-22-acts-22.md +424 -0
- package/data/packs/acts/artifacts/chapter-23-acts-23.md +395 -0
- package/data/packs/acts/artifacts/chapter-24-acts-24.md +446 -0
- package/data/packs/acts/artifacts/chapter-25-acts-25.md +391 -0
- package/data/packs/acts/artifacts/chapter-26-acts-26.md +431 -0
- package/data/packs/acts/artifacts/chapter-27-acts-27.md +530 -0
- package/data/packs/acts/artifacts/chapter-28-acts-28.md +1871 -0
- package/data/packs/acts/artifacts/chapters.manifest.json +170 -0
- package/data/packs/acts/artifacts/character_guide-creation.md +112 -0
- package/data/packs/acts/artifacts/discipleship_mentor-procedure.md +154 -0
- package/data/packs/acts/artifacts/discipleship_mentor-systems.md +72 -0
- package/data/packs/acts/artifacts/manifest.json +197 -0
- package/data/packs/acts/artifacts/stage-guide.md +94 -0
- package/data/packs/acts/pack.json +6 -0
- package/data/packs/acts/prompts/acts_player/defaults_config.json +5 -0
- package/data/packs/acts/prompts/acts_player/perceive.json +29 -0
- package/data/packs/acts/prompts/acts_player/perceive.prompt +87 -0
- package/data/packs/acts/prompts/acts_player/system_instruction.prompt +0 -0
- package/data/packs/acts/prompts/acts_room_moderator/defaults_config.json +9 -0
- package/data/packs/acts/prompts/acts_room_moderator/moderate.json +34 -0
- package/data/packs/acts/prompts/acts_room_moderator/moderate.prompt +70 -0
- package/data/packs/acts/prompts/acts_room_moderator/system_instruction.prompt +0 -0
- package/data/packs/acts/prompts/character_guide/defaults_config.json +18 -0
- package/data/packs/acts/prompts/character_guide/perceive.json +29 -0
- package/data/packs/acts/prompts/character_guide/perceive.prompt +140 -0
- package/data/packs/acts/prompts/character_guide/system_instruction.prompt +0 -0
- package/data/packs/acts/prompts/discipleship_mentor/defaults_config.json +23 -0
- package/data/packs/acts/prompts/discipleship_mentor/perceive.json +33 -0
- package/data/packs/acts/prompts/discipleship_mentor/perceive.prompt +245 -0
- package/data/packs/acts/prompts/discipleship_mentor/system_instruction.prompt +0 -0
- package/data/packs/acts/prompts/mentor_coach/defaults_config.json +13 -0
- package/data/packs/acts/prompts/mentor_coach/perceive.json +29 -0
- package/data/packs/acts/prompts/mentor_coach/perceive.prompt +87 -0
- package/data/packs/acts/prompts/mentor_coach/system_instruction.prompt +0 -0
- package/data/packs/acts/rooms/session.json +14 -0
- package/data/packs/acts/rooms/training.json +58 -0
- package/data/packs/dnd5e/artifacts/background-acolyte.md +66 -0
- package/data/packs/dnd5e/artifacts/character_creator-basics.md +31 -13
- package/data/packs/dnd5e/artifacts/class-barbarian.md +4 -1
- package/data/packs/dnd5e/artifacts/class-bard.md +2 -1
- package/data/packs/dnd5e/artifacts/class-cleric.md +2 -1
- package/data/packs/dnd5e/artifacts/class-druid.md +3 -1
- package/data/packs/dnd5e/artifacts/class-fighter.md +3 -1
- package/data/packs/dnd5e/artifacts/class-monk.md +2 -1
- package/data/packs/dnd5e/artifacts/class-paladin.md +2 -1
- package/data/packs/dnd5e/artifacts/class-ranger.md +3 -1
- package/data/packs/dnd5e/artifacts/class-rogue.md +3 -1
- package/data/packs/dnd5e/artifacts/class-sorcerer.md +2 -1
- package/data/packs/dnd5e/artifacts/class-warlock.md +3 -1
- package/data/packs/dnd5e/artifacts/class-wizard.md +2 -1
- package/data/packs/dnd5e/artifacts/manifest.json +6 -0
- package/data/packs/dnd5e/pack.json +1 -1
- package/data/packs/dnd5e/prompts/battle_master/perceive.prompt +491 -378
- package/data/packs/dnd5e/prompts/campaign_designer/perceive.prompt +24 -7
- package/data/packs/dnd5e/prompts/character_creator/defaults_config.json +2 -13
- package/data/packs/dnd5e/prompts/character_creator/perceive.prompt +217 -87
- package/data/packs/dnd5e/prompts/dnd_player/defaults_config.json +5 -5
- package/data/packs/dnd5e/prompts/dnd_player/perceive.prompt +18 -4
- package/data/packs/dnd5e/prompts/dnd_room_moderator/defaults_config.json +9 -9
- package/data/packs/dnd5e/prompts/dnd_room_moderator/moderate.prompt +13 -10
- package/data/packs/dnd5e/prompts/dungeon_master/defaults_config.json +32 -30
- package/data/packs/dnd5e/prompts/dungeon_master/perceive.prompt +794 -764
- package/data/packs/dnd5e/rooms/campaign.json +15 -0
- package/dist-sdk/server/src/ai/LLM/anthropic.service.d.ts +3 -0
- package/dist-sdk/server/src/ai/LLM/anthropic.service.js +40 -11
- package/dist-sdk/server/src/ai/LLM/base-ai.service.d.ts +1 -0
- package/dist-sdk/server/src/ai/LLM/base-ai.service.js +16 -0
- package/dist-sdk/server/src/ai/LLM/deepseek.service.js +5 -3
- package/dist-sdk/server/src/ai/agent-store.service.js +1 -1
- package/dist-sdk/server/src/ai/artifact.service.d.ts +2 -0
- package/dist-sdk/server/src/ai/artifact.service.js +6 -0
- package/dist-sdk/server/src/ai/pack-artifacts.d.ts +2 -0
- package/dist-sdk/server/src/ai/pack-artifacts.js +65 -8
- package/dist-sdk/server/src/app/user-service-factory.js +6 -1
- package/dist-sdk/server/src/app/user-service-manager.js +1 -1
- package/dist-sdk/server/src/app.controller.d.ts +9 -1
- package/dist-sdk/server/src/app.controller.js +124 -13
- package/dist-sdk/server/src/app.service.d.ts +25 -2
- package/dist-sdk/server/src/app.service.js +122 -110
- package/dist-sdk/server/src/auth/auth.controller.js +4 -0
- package/dist-sdk/server/src/auth/auth.service.d.ts +2 -1
- package/dist-sdk/server/src/auth/dto/phone-login.dto.d.ts +2 -1
- package/dist-sdk/server/src/config/prompt-resolver.d.ts +2 -0
- package/dist-sdk/server/src/config/prompt-resolver.js +14 -7
- package/dist-sdk/server/src/documents/pdf-conversion.d.ts +43 -0
- package/dist-sdk/server/src/documents/pdf-conversion.js +175 -0
- package/dist-sdk/server/src/packs/pack-instantiation.service.d.ts +2 -1
- package/dist-sdk/server/src/packs/pack-instantiation.service.js +16 -5
- package/dist-sdk/server/src/room/room-message.service.d.ts +2 -1
- package/dist-sdk/server/src/room/room-message.service.js +3 -2
- package/dist-sdk/server/src/room/room-store.service.js +5 -1
- package/dist-sdk/server/src/room/room.d.ts +15 -2
- package/dist-sdk/server/src/room/room.js +86 -25
- package/dist-sdk/server/src/rpg/rpg-models.d.ts +9 -0
- package/dist-sdk/server/src/rpg/rpg-models.js +128 -0
- package/dist-sdk/server/src/rpg/rpg-roster.d.ts +10 -0
- package/dist-sdk/server/src/rpg/rpg-roster.js +71 -0
- package/dist-sdk/server/src/rpg/rpg.service.d.ts +29 -0
- package/dist-sdk/server/src/rpg/rpg.service.js +199 -0
- package/dist-sdk/server/src/sdk/index.d.ts +7 -4
- package/dist-sdk/server/src/sdk/index.js +8 -1
- package/dist-sdk/server/src/story/story.service.d.ts +2 -1
- package/dist-sdk/server/src/story/story.service.js +42 -4
- package/dist-sdk/server/src/tools/native-tool.types.d.ts +5 -0
- package/dist-sdk/server/src/tools/packs/acts/data/cards.d.ts +53 -0
- package/dist-sdk/server/src/tools/packs/acts/data/cards.js +54 -0
- package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.js +185 -0
- package/dist-sdk/server/src/tools/packs/acts/data/encounters.d.ts +12 -0
- package/dist-sdk/server/src/tools/packs/acts/data/encounters.js +102 -0
- package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.js +196 -0
- package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.js +1311 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/cards.d.ts +5 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/cards.js +27 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/challenge.d.ts +37 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/challenge.js +120 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/dice.d.ts +20 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/dice.js +41 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/sheet.d.ts +54 -0
- package/dist-sdk/server/src/tools/packs/acts/engine/sheet.js +200 -0
- package/dist-sdk/server/src/tools/packs/acts/index.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/acts/index.js +24 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.js +184 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.js +107 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.d.ts +3 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.js +146 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.d.ts +4 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.js +241 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.d.ts +3 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.js +72 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.js +75 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/shared.d.ts +20 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/shared.js +70 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.d.ts +4 -0
- package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.js +215 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.d.ts +0 -21
- package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.js +1 -56
- package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.d.ts +10 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.js +67 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.d.ts +5 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.js +7 -1
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/bestiary.js +4 -3
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.d.ts +6 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.js +92 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +32 -5
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +177 -28
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.d.ts +1 -13
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.js +15 -145
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.d.ts +7 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.js +11 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.d.ts +5 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.js +45 -2
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.js +3 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.d.ts +21 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.js +45 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +6 -4
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +17 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +56 -4
- package/dist-sdk/server/src/tools/packs/dnd5e/index.js +3 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +117 -15
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.js +96 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +40 -3
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.js +36 -27
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +7 -4
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +15 -1
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +73 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +40 -12
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/state.tools.js +68 -2
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.d.ts +1 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +119 -14
- package/dist-sdk/server/src/tools/packs/index.d.ts +2 -1
- package/dist-sdk/server/src/tools/packs/index.js +4 -1
- package/dist-sdk/server/src/tools/shared/coerce.d.ts +13 -0
- package/dist-sdk/server/src/tools/shared/coerce.js +147 -0
- package/dist-sdk/server/src/tools/tool-execution.service.d.ts +3 -2
- package/dist-sdk/server/src/tools/tool-execution.service.js +4 -1
- package/dist-sdk/shared/types/app.types.d.ts +73 -0
- package/dist-sdk/shared/types/app.types.js +2 -1
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Agent.html +73 -73
- package/docs/classes/Briyah.html +16 -16
- package/docs/classes/BriyahConfigService.html +7 -7
- package/docs/classes/NativeToolRegistry.html +10 -10
- package/docs/classes/PackInstantiationService.html +20 -9
- package/docs/classes/PackService.html +13 -13
- package/docs/classes/Room.html +118 -93
- package/docs/classes/RoomMessage.html +22 -22
- package/docs/enums/MessageAction.html +18 -18
- package/docs/functions/actsTools.html +44 -0
- package/docs/functions/availableToolPacks.html +4 -4
- package/docs/functions/buildMarkdown.html +54 -0
- package/docs/functions/dnd5eTools.html +4 -4
- package/docs/functions/installToolPacks.html +4 -4
- package/docs/functions/pageMarker.html +45 -0
- package/docs/functions/registerToolPacks.html +4 -4
- package/docs/functions/splitMarkdownIntoPages.html +51 -0
- package/docs/functions/stripWrappingFence.html +52 -0
- package/docs/hierarchy.html +13 -9
- package/docs/index.html +161 -44
- package/docs/interfaces/AgentCreationOptions.html +12 -12
- package/docs/interfaces/AgentInfo.html +30 -30
- package/docs/interfaces/AgentMessagesResponse.html +8 -8
- package/docs/interfaces/AppService.html +300 -194
- package/docs/interfaces/Artifact.html +9 -9
- package/docs/interfaces/ArtifactMetadata.html +13 -13
- package/docs/interfaces/ArtifactWriteOptions.html +7 -7
- package/docs/interfaces/AttachDocumentResponse.html +6 -6
- package/docs/interfaces/BriyahConfigOptions.html +12 -12
- package/docs/interfaces/ChapterInfo.html +6 -6
- package/docs/interfaces/Character.html +10 -10
- package/docs/interfaces/ConversionAgent.html +78 -0
- package/docs/interfaces/CreateAgentResponse.html +5 -5
- package/docs/interfaces/CreateRoomResponse.html +6 -6
- package/docs/interfaces/CreateStoryResponse.html +5 -5
- package/docs/interfaces/FileList.html +5 -5
- package/docs/interfaces/FileMetadata.html +10 -10
- package/docs/interfaces/IConfigService.html +5 -5
- package/docs/interfaces/InstantiateModels.html +6 -6
- package/docs/interfaces/InstantiateRoomResult.html +7 -7
- package/docs/interfaces/LoadedPack.html +16 -16
- package/docs/interfaces/LoggingOptions.html +9 -9
- package/docs/interfaces/Message.html +9 -9
- package/docs/interfaces/ModelChoice.html +7 -7
- package/docs/interfaces/ModelInfo.html +8 -8
- package/docs/interfaces/NativeToolDefinition.html +10 -10
- package/docs/interfaces/PackAgentTemplate.html +9 -9
- package/docs/interfaces/PackRoomTemplate.html +11 -11
- package/docs/interfaces/PackView.html +20 -20
- package/docs/interfaces/PdfConversionOptions.html +102 -0
- package/docs/interfaces/PdfConversionResult.html +97 -0
- package/docs/interfaces/PdfMarkdownOptions.html +198 -0
- package/docs/interfaces/PdfMarkdownResult.html +106 -0
- package/docs/interfaces/PdfPageMarkdown.html +94 -0
- package/docs/interfaces/PreparedPromptResponse.html +6 -6
- package/docs/interfaces/ProcessTextResponse.html +10 -10
- package/docs/interfaces/PromptFile.html +7 -7
- package/docs/interfaces/PromptFileContent.html +8 -8
- package/docs/interfaces/PromptFilesResponse.html +5 -5
- package/docs/interfaces/PromptFolder.html +8 -8
- package/docs/interfaces/PromptFolderDefaults.html +19 -19
- package/docs/interfaces/PromptFolderDefaultsResponse.html +21 -8
- package/docs/interfaces/PromptFoldersResponse.html +5 -5
- package/docs/interfaces/RoomDetails.html +19 -19
- package/docs/interfaces/RoomErrorUpdate.html +82 -0
- package/docs/interfaces/RoomInfo.html +10 -10
- package/docs/interfaces/RoomMessageUpdate.html +30 -15
- package/docs/interfaces/RoomMessagesResponse.html +6 -6
- package/docs/interfaces/SendMessageResult.html +6 -6
- package/docs/interfaces/StoryErrorEvent.html +8 -8
- package/docs/interfaces/StoryIdea.html +8 -8
- package/docs/interfaces/StoryInfo.html +28 -28
- package/docs/interfaces/StoryIntroduceCharacterEvent.html +7 -7
- package/docs/interfaces/StoryProgressChapterEvent.html +6 -6
- package/docs/interfaces/StoryState.html +12 -12
- package/docs/interfaces/StoryStateEvent.html +7 -7
- package/docs/interfaces/ToolArtifact.html +9 -9
- package/docs/interfaces/ToolCaller.html +7 -7
- package/docs/interfaces/ToolDefinition.html +9 -9
- package/docs/interfaces/ToolHelpers.html +17 -8
- package/docs/interfaces/ToolPackDocuments.html +100 -0
- package/docs/interfaces/ToolParameter.html +8 -8
- package/docs/interfaces/ToolRoomAccess.html +14 -14
- package/docs/interfaces/ToolSummary.html +8 -8
- package/docs/interfaces/ToolsResponse.html +7 -7
- package/docs/interfaces/Transaction.html +13 -13
- package/docs/interfaces/TransactionHistoryResponse.html +6 -6
- package/docs/modules.html +10 -10
- package/docs/types/PackOrigin.html +4 -4
- package/docs/types/PromptScope.html +4 -4
- package/docs/types/RoomTurnMode.html +4 -4
- package/docs/types/RoomUpdate.html +36 -0
- package/docs/types/RosterOverrides.html +42 -0
- package/docs/types/ToolContext.html +4 -4
- package/docs/types/ToolRunResult.html +4 -4
- package/package.json +1 -1
- package/src/tools/packs/dnd5e/README.md +186 -69
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.d.ts +0 -20
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.js +0 -112
package/docs/classes/Agent.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Agent | Briyah SDK - v2.0.
|
|
2
|
-
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Agent | Briyah SDK - v2.0.2</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.2</a>
|
|
3
3
|
<div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
4
|
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
5
|
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<li><a href="" aria-current="page">Agent</a></li></ul>
|
|
12
12
|
<h1>Class Agent</h1></div><aside class="tsd-sources">
|
|
13
13
|
<ul>
|
|
14
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
14
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L15">server/src/ai/agent.ts:15</a></li></ul></aside>
|
|
15
15
|
<section class="tsd-panel-group tsd-index-group">
|
|
16
16
|
<section class="tsd-panel tsd-index-panel">
|
|
17
17
|
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
@@ -99,57 +99,57 @@
|
|
|
99
99
|
<h3 class="tsd-anchor-link" id="agentname"><span>agent<wbr/>Name</span><a href="#agentname" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
100
100
|
<div class="tsd-signature"><span class="tsd-kind-property">agentName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
101
101
|
<ul>
|
|
102
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
102
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L17">server/src/ai/agent.ts:17</a></li></ul></aside></section>
|
|
103
103
|
<section class="tsd-panel tsd-member">
|
|
104
104
|
<h3 class="tsd-anchor-link" id="agentnickname"><span>agent<wbr/>Nickname</span><a href="#agentnickname" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
105
105
|
<div class="tsd-signature"><span class="tsd-kind-property">agentNickname</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
106
106
|
<ul>
|
|
107
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
107
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L18">server/src/ai/agent.ts:18</a></li></ul></aside></section>
|
|
108
108
|
<section class="tsd-panel tsd-member">
|
|
109
109
|
<h3 class="tsd-anchor-link" id="allowsearch"><span>allow<wbr/>Search</span><a href="#allowsearch" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
110
110
|
<div class="tsd-signature"><span class="tsd-kind-property">allowSearch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources">
|
|
111
111
|
<ul>
|
|
112
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
112
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L113">server/src/ai/agent.ts:113</a></li></ul></aside></section>
|
|
113
113
|
<section class="tsd-panel tsd-member">
|
|
114
114
|
<h3 class="tsd-anchor-link" id="assistant"><code class="tsd-tag">Optional</code><span>assistant</span><a href="#assistant" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
115
115
|
<div class="tsd-signature"><span class="tsd-kind-property">assistant</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Assistant</span></div><aside class="tsd-sources">
|
|
116
116
|
<ul>
|
|
117
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
117
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L50">server/src/ai/agent.ts:50</a></li></ul></aside></section>
|
|
118
118
|
<section class="tsd-panel tsd-member">
|
|
119
119
|
<h3 class="tsd-anchor-link" id="attachedartifacts"><span>attached<wbr/>Artifacts</span><a href="#attachedartifacts" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
120
120
|
<div class="tsd-signature"><span class="tsd-kind-property">attachedArtifacts</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
|
|
121
121
|
<ul>
|
|
122
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
122
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L116">server/src/ai/agent.ts:116</a></li></ul></aside></section>
|
|
123
123
|
<section class="tsd-panel tsd-member">
|
|
124
124
|
<h3 class="tsd-anchor-link" id="attachedfiles"><span>attached<wbr/>Files</span><a href="#attachedfiles" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
125
125
|
<div class="tsd-signature"><span class="tsd-kind-property">attachedFiles</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/FileMetadata.html" class="tsd-signature-type tsd-kind-interface">FileMetadata</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
|
|
126
126
|
<ul>
|
|
127
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
127
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L115">server/src/ai/agent.ts:115</a></li></ul></aside></section>
|
|
128
128
|
<section class="tsd-panel tsd-member">
|
|
129
129
|
<h3 class="tsd-anchor-link" id="begininstruction"><span>begin<wbr/>Instruction</span><a href="#begininstruction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
130
130
|
<div class="tsd-signature"><span class="tsd-kind-property">beginInstruction</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ''</span></div><aside class="tsd-sources">
|
|
131
131
|
<ul>
|
|
132
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
132
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L118">server/src/ai/agent.ts:118</a></li></ul></aside></section>
|
|
133
133
|
<section class="tsd-panel tsd-member">
|
|
134
134
|
<h3 class="tsd-anchor-link" id="createdat"><span>created<wbr/>At</span><a href="#createdat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
135
135
|
<div class="tsd-signature"><span class="tsd-kind-property">createdAt</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span></div><aside class="tsd-sources">
|
|
136
136
|
<ul>
|
|
137
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
137
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L32">server/src/ai/agent.ts:32</a></li></ul></aside></section>
|
|
138
138
|
<section class="tsd-panel tsd-member">
|
|
139
139
|
<h3 class="tsd-anchor-link" id="description"><span>description</span><a href="#description" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
140
140
|
<div class="tsd-signature"><span class="tsd-kind-property">description</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
141
141
|
<ul>
|
|
142
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
142
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L66">server/src/ai/agent.ts:66</a></li></ul></aside></section>
|
|
143
143
|
<section class="tsd-panel tsd-member">
|
|
144
144
|
<h3 class="tsd-anchor-link" id="disablebalancecheck"><span>disable<wbr/>Balance<wbr/>Check</span><a href="#disablebalancecheck" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
145
145
|
<div class="tsd-signature"><span class="tsd-kind-property">disableBalanceCheck</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources">
|
|
146
146
|
<ul>
|
|
147
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
147
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L39">server/src/ai/agent.ts:39</a></li></ul></aside></section>
|
|
148
148
|
<section class="tsd-panel tsd-member">
|
|
149
149
|
<h3 class="tsd-anchor-link" id="disablemarkup"><span>disable<wbr/>Markup</span><a href="#disablemarkup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
150
150
|
<div class="tsd-signature"><span class="tsd-kind-property">disableMarkup</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources">
|
|
151
151
|
<ul>
|
|
152
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
152
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L38">server/src/ai/agent.ts:38</a></li></ul></aside></section>
|
|
153
153
|
<section class="tsd-panel tsd-member">
|
|
154
154
|
<h3 class="tsd-anchor-link" id="enabledpacks"><code class="tsd-tag">Optional</code><span>enabled<wbr/>Packs</span><a href="#enabledpacks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
155
155
|
<div class="tsd-signature"><span class="tsd-kind-property">enabledPacks</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
|
|
@@ -164,17 +164,17 @@ packs existed. Deliberately not in <code>AgentConfig</code> — it belongs to th
|
|
|
164
164
|
not the agent, and persisting it would freeze a copy of the enabled set.</p>
|
|
165
165
|
</div><aside class="tsd-sources">
|
|
166
166
|
<ul>
|
|
167
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
167
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L90">server/src/ai/agent.ts:90</a></li></ul></aside></section>
|
|
168
168
|
<section class="tsd-panel tsd-member">
|
|
169
169
|
<h3 class="tsd-anchor-link" id="fullcontextfiles"><span>full<wbr/>Context<wbr/>Files</span><a href="#fullcontextfiles" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
170
170
|
<div class="tsd-signature"><span class="tsd-kind-property">fullContextFiles</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources">
|
|
171
171
|
<ul>
|
|
172
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
172
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L20">server/src/ai/agent.ts:20</a></li></ul></aside></section>
|
|
173
173
|
<section class="tsd-panel tsd-member">
|
|
174
174
|
<h3 class="tsd-anchor-link" id="history"><span>history</span><a href="#history" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
175
175
|
<div class="tsd-signature"><span class="tsd-kind-property">history</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
|
176
176
|
<ul>
|
|
177
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
177
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L19">server/src/ai/agent.ts:19</a></li></ul></aside></section>
|
|
178
178
|
<section class="tsd-panel tsd-member">
|
|
179
179
|
<h3 class="tsd-anchor-link" id="historypin"><code class="tsd-tag">Optional</code><span>history<wbr/>Pin</span><a href="#historypin" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
180
180
|
<div class="tsd-signature"><span class="tsd-kind-property">historyPin</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div>
|
|
@@ -191,66 +191,66 @@ task is reclaimed the next time one starts, and the worst a stale pin can do is
|
|
|
191
191
|
keep more history than intended — never drop any.</p>
|
|
192
192
|
</div><aside class="tsd-sources">
|
|
193
193
|
<ul>
|
|
194
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
194
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L108">server/src/ai/agent.ts:108</a></li></ul></aside></section>
|
|
195
195
|
<section class="tsd-panel tsd-member">
|
|
196
196
|
<h3 class="tsd-anchor-link" id="id"><code class="tsd-tag">Optional</code><span>id</span><a href="#id" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
197
197
|
<div class="tsd-signature"><span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
198
198
|
<ul>
|
|
199
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
199
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L16">server/src/ai/agent.ts:16</a></li></ul></aside></section>
|
|
200
200
|
<section class="tsd-panel tsd-member">
|
|
201
201
|
<h3 class="tsd-anchor-link" id="iscontrolledbyhuman"><span>is<wbr/>Controlled<wbr/>By<wbr/>Human</span><a href="#iscontrolledbyhuman" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
202
202
|
<div class="tsd-signature"><span class="tsd-kind-property">isControlledByHuman</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources">
|
|
203
203
|
<ul>
|
|
204
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
204
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L117">server/src/ai/agent.ts:117</a></li></ul></aside></section>
|
|
205
205
|
<section class="tsd-panel tsd-member">
|
|
206
206
|
<h3 class="tsd-anchor-link" id="ispublished"><span>is<wbr/>Published</span><a href="#ispublished" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
207
207
|
<div class="tsd-signature"><span class="tsd-kind-property">isPublished</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources">
|
|
208
208
|
<ul>
|
|
209
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
209
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L40">server/src/ai/agent.ts:40</a></li></ul></aside></section>
|
|
210
210
|
<section class="tsd-panel tsd-member">
|
|
211
211
|
<h3 class="tsd-anchor-link" id="markuprate"><span>markup<wbr/>Rate</span><a href="#markuprate" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
212
212
|
<div class="tsd-signature"><span class="tsd-kind-property">markupRate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 2</span></div><aside class="tsd-sources">
|
|
213
213
|
<ul>
|
|
214
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
214
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L37">server/src/ai/agent.ts:37</a></li></ul></aside></section>
|
|
215
215
|
<section class="tsd-panel tsd-member">
|
|
216
216
|
<h3 class="tsd-anchor-link" id="maxhistorymessages"><code class="tsd-tag">Optional</code><span>max<wbr/>History<wbr/>Messages</span><a href="#maxhistorymessages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
217
217
|
<div class="tsd-signature"><span class="tsd-kind-property">maxHistoryMessages</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources">
|
|
218
218
|
<ul>
|
|
219
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
219
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L92">server/src/ai/agent.ts:92</a></li></ul></aside></section>
|
|
220
220
|
<section class="tsd-panel tsd-member">
|
|
221
221
|
<h3 class="tsd-anchor-link" id="maxoutputtokens"><span>max<wbr/>Output<wbr/>Tokens</span><a href="#maxoutputtokens" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
222
222
|
<div class="tsd-signature"><span class="tsd-kind-property">maxOutputTokens</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
|
|
223
223
|
<ul>
|
|
224
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
224
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L114">server/src/ai/agent.ts:114</a></li></ul></aside></section>
|
|
225
225
|
<section class="tsd-panel tsd-member">
|
|
226
226
|
<h3 class="tsd-anchor-link" id="modelname"><span>model<wbr/>Name</span><a href="#modelname" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
227
227
|
<div class="tsd-signature"><span class="tsd-kind-property">modelName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
228
228
|
<ul>
|
|
229
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
229
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L109">server/src/ai/agent.ts:109</a></li></ul></aside></section>
|
|
230
230
|
<section class="tsd-panel tsd-member">
|
|
231
231
|
<h3 class="tsd-anchor-link" id="openai"><code class="tsd-tag">Optional</code><span>openai</span><a href="#openai" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
232
232
|
<div class="tsd-signature"><span class="tsd-kind-property">openai</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">OpenAI</span></div><aside class="tsd-sources">
|
|
233
233
|
<ul>
|
|
234
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
234
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L49">server/src/ai/agent.ts:49</a></li></ul></aside></section>
|
|
235
235
|
<section class="tsd-panel tsd-member">
|
|
236
236
|
<h3 class="tsd-anchor-link" id="ownerroomid"><code class="tsd-tag">Optional</code><span>owner<wbr/>Room<wbr/>Id</span><a href="#ownerroomid" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
237
237
|
<div class="tsd-signature"><span class="tsd-kind-property">ownerRoomId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
238
238
|
<ul>
|
|
239
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
239
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L42">server/src/ai/agent.ts:42</a></li></ul></aside></section>
|
|
240
240
|
<section class="tsd-panel tsd-member">
|
|
241
241
|
<h3 class="tsd-anchor-link" id="pack"><code class="tsd-tag">Optional</code><span>pack</span><a href="#pack" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
242
242
|
<div class="tsd-signature"><span class="tsd-kind-property">pack</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
243
243
|
<div class="tsd-comment tsd-typography"><p>The pack this agent is filed under. See AgentConfig.pack.</p>
|
|
244
244
|
</div><aside class="tsd-sources">
|
|
245
245
|
<ul>
|
|
246
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
246
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L44">server/src/ai/agent.ts:44</a></li></ul></aside></section>
|
|
247
247
|
<section class="tsd-panel tsd-member">
|
|
248
248
|
<h3 class="tsd-anchor-link" id="packagentkey"><code class="tsd-tag">Optional</code><span>pack<wbr/>Agent<wbr/>Key</span><a href="#packagentkey" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
249
249
|
<div class="tsd-signature"><span class="tsd-kind-property">packAgentKey</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
250
250
|
<div class="tsd-comment tsd-typography"><p>The pack template's key, when this agent came from one.</p>
|
|
251
251
|
</div><aside class="tsd-sources">
|
|
252
252
|
<ul>
|
|
253
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
253
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L46">server/src/ai/agent.ts:46</a></li></ul></aside></section>
|
|
254
254
|
<section class="tsd-panel tsd-member">
|
|
255
255
|
<h3 class="tsd-anchor-link" id="privatecontext"><span>private<wbr/>Context</span><a href="#privatecontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
256
256
|
<div class="tsd-signature"><span class="tsd-kind-property">privateContext</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ''</span></div>
|
|
@@ -262,72 +262,72 @@ and conditions; contrast with <a href="#description" class="tsd-kind-property">d
|
|
|
262
262
|
appearance every other agent can see.</p>
|
|
263
263
|
</div><aside class="tsd-sources">
|
|
264
264
|
<ul>
|
|
265
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
265
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L75">server/src/ai/agent.ts:75</a></li></ul></aside></section>
|
|
266
266
|
<section class="tsd-panel tsd-member">
|
|
267
267
|
<h3 class="tsd-anchor-link" id="promptcachettl"><span>prompt<wbr/>Cache<wbr/>TTL</span><a href="#promptcachettl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
268
268
|
<div class="tsd-signature"><span class="tsd-kind-property">promptCacheTTL</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
|
|
269
269
|
<ul>
|
|
270
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
270
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L137">server/src/ai/agent.ts:137</a></li></ul></aside></section>
|
|
271
271
|
<section class="tsd-panel tsd-member">
|
|
272
272
|
<h3 class="tsd-anchor-link" id="promptfolder"><span>prompt<wbr/>Folder</span><a href="#promptfolder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
273
273
|
<div class="tsd-signature"><span class="tsd-kind-property">promptFolder</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
274
274
|
<ul>
|
|
275
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
275
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L76">server/src/ai/agent.ts:76</a></li></ul></aside></section>
|
|
276
276
|
<section class="tsd-panel tsd-member">
|
|
277
277
|
<h3 class="tsd-anchor-link" id="reasoningeffort"><span>reasoning<wbr/>Effort</span><a href="#reasoningeffort" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
278
278
|
<div class="tsd-signature"><span class="tsd-kind-property">reasoningEffort</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"low"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"medium"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"high"</span></div><aside class="tsd-sources">
|
|
279
279
|
<ul>
|
|
280
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
280
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L112">server/src/ai/agent.ts:112</a></li></ul></aside></section>
|
|
281
281
|
<section class="tsd-panel tsd-member">
|
|
282
282
|
<h3 class="tsd-anchor-link" id="servicename"><span>service<wbr/>Name</span><a href="#servicename" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
283
283
|
<div class="tsd-signature"><span class="tsd-kind-property">serviceName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
284
284
|
<ul>
|
|
285
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
285
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L111">server/src/ai/agent.ts:111</a></li></ul></aside></section>
|
|
286
286
|
<section class="tsd-panel tsd-member">
|
|
287
287
|
<h3 class="tsd-anchor-link" id="smallmodelname"><code class="tsd-tag">Optional</code><span>small<wbr/>Model<wbr/>Name</span><a href="#smallmodelname" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
288
288
|
<div class="tsd-signature"><span class="tsd-kind-property">smallModelName</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
289
289
|
<ul>
|
|
290
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
290
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L110">server/src/ai/agent.ts:110</a></li></ul></aside></section>
|
|
291
291
|
<section class="tsd-panel tsd-member">
|
|
292
292
|
<h3 class="tsd-anchor-link" id="storagedir"><span>storage<wbr/>Dir</span><a href="#storagedir" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
293
293
|
<div class="tsd-signature"><span class="tsd-kind-property">storageDir</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
294
294
|
<ul>
|
|
295
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
295
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L143">server/src/ai/agent.ts:143</a></li></ul></aside></section>
|
|
296
296
|
<section class="tsd-panel tsd-member">
|
|
297
297
|
<h3 class="tsd-anchor-link" id="systeminstruction"><span>system<wbr/>Instruction</span><a href="#systeminstruction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
298
298
|
<div class="tsd-signature"><span class="tsd-kind-property">systemInstruction</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
299
299
|
<ul>
|
|
300
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
300
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L91">server/src/ai/agent.ts:91</a></li></ul></aside></section>
|
|
301
301
|
<section class="tsd-panel tsd-member">
|
|
302
302
|
<h3 class="tsd-anchor-link" id="templateagentid"><code class="tsd-tag">Optional</code><span>template<wbr/>Agent<wbr/>Id</span><a href="#templateagentid" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
303
303
|
<div class="tsd-signature"><span class="tsd-kind-property">templateAgentId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
304
304
|
<ul>
|
|
305
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
305
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L41">server/src/ai/agent.ts:41</a></li></ul></aside></section>
|
|
306
306
|
<section class="tsd-panel tsd-member">
|
|
307
307
|
<h3 class="tsd-anchor-link" id="toolnames"><span>tool<wbr/>Names</span><a href="#toolnames" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
308
308
|
<div class="tsd-signature"><span class="tsd-kind-property">toolNames</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources">
|
|
309
309
|
<ul>
|
|
310
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
310
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L119">server/src/ai/agent.ts:119</a></li></ul></aside></section>
|
|
311
311
|
<section class="tsd-panel tsd-member">
|
|
312
312
|
<h3 class="tsd-anchor-link" id="totalcost"><span>total<wbr/>Cost</span><a href="#totalcost" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
313
313
|
<div class="tsd-signature"><span class="tsd-kind-property">totalCost</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
|
|
314
314
|
<ul>
|
|
315
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
315
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L35">server/src/ai/agent.ts:35</a></li></ul></aside></section>
|
|
316
316
|
<section class="tsd-panel tsd-member">
|
|
317
317
|
<h3 class="tsd-anchor-link" id="totalinputtokens"><span>total<wbr/>Input<wbr/>Tokens</span><a href="#totalinputtokens" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
318
318
|
<div class="tsd-signature"><span class="tsd-kind-property">totalInputTokens</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
|
|
319
319
|
<ul>
|
|
320
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
320
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L33">server/src/ai/agent.ts:33</a></li></ul></aside></section>
|
|
321
321
|
<section class="tsd-panel tsd-member">
|
|
322
322
|
<h3 class="tsd-anchor-link" id="totalmarkup"><span>total<wbr/>Markup</span><a href="#totalmarkup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
323
323
|
<div class="tsd-signature"><span class="tsd-kind-property">totalMarkup</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
|
|
324
324
|
<ul>
|
|
325
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
325
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L36">server/src/ai/agent.ts:36</a></li></ul></aside></section>
|
|
326
326
|
<section class="tsd-panel tsd-member">
|
|
327
327
|
<h3 class="tsd-anchor-link" id="totaloutputtokens"><span>total<wbr/>Output<wbr/>Tokens</span><a href="#totaloutputtokens" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
328
328
|
<div class="tsd-signature"><span class="tsd-kind-property">totalOutputTokens</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources">
|
|
329
329
|
<ul>
|
|
330
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
330
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L34">server/src/ai/agent.ts:34</a></li></ul></aside></section>
|
|
331
331
|
<section class="tsd-panel tsd-member">
|
|
332
332
|
<h3 class="tsd-anchor-link" id="usemoderator"><span>use<wbr/>Moderator</span><a href="#usemoderator" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
333
333
|
<div class="tsd-signature"><span class="tsd-kind-property">useModerator</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
|
|
@@ -343,12 +343,12 @@ which Room.parseAgentResponse converts. An agent that names its own targets
|
|
|
343
343
|
keeps doing so.</p>
|
|
344
344
|
</div><aside class="tsd-sources">
|
|
345
345
|
<ul>
|
|
346
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
346
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L134">server/src/ai/agent.ts:134</a></li></ul></aside></section>
|
|
347
347
|
<section class="tsd-panel tsd-member">
|
|
348
348
|
<h3 class="tsd-anchor-link" id="vectorstore"><code class="tsd-tag">Optional</code><span>vector<wbr/>Store</span><a href="#vectorstore" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
349
349
|
<div class="tsd-signature"><span class="tsd-kind-property">vectorStore</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">VectorStore</span></div><aside class="tsd-sources">
|
|
350
350
|
<ul>
|
|
351
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
351
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L51">server/src/ai/agent.ts:51</a></li></ul></aside></section></section></details>
|
|
352
352
|
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
353
353
|
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
354
354
|
<section>
|
|
@@ -365,7 +365,7 @@ keeps doing so.</p>
|
|
|
365
365
|
<li><span><span class="tsd-kind-parameter">fromSelf</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span></li></ul></div>
|
|
366
366
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
367
367
|
<ul>
|
|
368
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
368
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L343">server/src/ai/agent.ts:343</a></li></ul></aside></div></li></ul></section>
|
|
369
369
|
<section class="tsd-panel tsd-member">
|
|
370
370
|
<h3 class="tsd-anchor-link" id="attachartifact"><span>attach<wbr/>Artifact</span><a href="#attachartifact" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
371
371
|
<ul class="tsd-signatures">
|
|
@@ -382,7 +382,7 @@ keeps doing so.</p>
|
|
|
382
382
|
</div></li></ul></div>
|
|
383
383
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
384
384
|
<ul>
|
|
385
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
385
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L218">server/src/ai/agent.ts:218</a></li></ul></aside></div></li></ul></section>
|
|
386
386
|
<section class="tsd-panel tsd-member">
|
|
387
387
|
<h3 class="tsd-anchor-link" id="attachdocument"><span>attach<wbr/>Document</span><a href="#attachdocument" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
388
388
|
<ul class="tsd-signatures">
|
|
@@ -396,7 +396,7 @@ keeps doing so.</p>
|
|
|
396
396
|
<li><span><span class="tsd-kind-parameter">fileData</span>: <span class="tsd-signature-type">Uint8Array</span></span></li></ul></div>
|
|
397
397
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
398
398
|
<ul>
|
|
399
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
399
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L210">server/src/ai/agent.ts:210</a></li></ul></aside></div></li></ul></section>
|
|
400
400
|
<section class="tsd-panel tsd-member">
|
|
401
401
|
<h3 class="tsd-anchor-link" id="canrespond"><span>can<wbr/>Respond</span><a href="#canrespond" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
402
402
|
<ul class="tsd-signatures">
|
|
@@ -409,7 +409,7 @@ keeps doing so.</p>
|
|
|
409
409
|
<li><span><span class="tsd-kind-parameter">message</span>: <a href="../interfaces/Message.html" class="tsd-signature-type tsd-kind-interface">Message</a></span></li></ul></div>
|
|
410
410
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
411
411
|
<ul>
|
|
412
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
412
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L275">server/src/ai/agent.ts:275</a></li></ul></aside></div></li></ul></section>
|
|
413
413
|
<section class="tsd-panel tsd-member">
|
|
414
414
|
<h3 class="tsd-anchor-link" id="compact"><span>compact</span><a href="#compact" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
415
415
|
<ul class="tsd-signatures">
|
|
@@ -423,7 +423,7 @@ On failure, the original history is restored.</p>
|
|
|
423
423
|
</div>
|
|
424
424
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">newChars</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">newLength</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">originalChars</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">originalLength</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">success</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">summary</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
425
425
|
<ul>
|
|
426
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
426
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L528">server/src/ai/agent.ts:528</a></li></ul></aside></div></li></ul></section>
|
|
427
427
|
<section class="tsd-panel tsd-member">
|
|
428
428
|
<h3 class="tsd-anchor-link" id="deleteagent"><span>delete<wbr/>Agent</span><a href="#deleteagent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
429
429
|
<ul class="tsd-signatures">
|
|
@@ -432,7 +432,7 @@ On failure, the original history is restored.</p>
|
|
|
432
432
|
<div class="tsd-description">
|
|
433
433
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
434
434
|
<ul>
|
|
435
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
435
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L253">server/src/ai/agent.ts:253</a></li></ul></aside></div></li></ul></section>
|
|
436
436
|
<section class="tsd-panel tsd-member">
|
|
437
437
|
<h3 class="tsd-anchor-link" id="detachartifact"><span>detach<wbr/>Artifact</span><a href="#detachartifact" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
438
438
|
<ul class="tsd-signatures">
|
|
@@ -449,7 +449,7 @@ On failure, the original history is restored.</p>
|
|
|
449
449
|
</div></li></ul></div>
|
|
450
450
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
451
451
|
<ul>
|
|
452
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
452
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L228">server/src/ai/agent.ts:228</a></li></ul></aside></div></li></ul></section>
|
|
453
453
|
<section class="tsd-panel tsd-member">
|
|
454
454
|
<h3 class="tsd-anchor-link" id="editimage"><span>edit<wbr/>Image</span><a href="#editimage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
455
455
|
<ul class="tsd-signatures">
|
|
@@ -464,7 +464,7 @@ On failure, the original history is restored.</p>
|
|
|
464
464
|
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">referenceImageArtifactIds</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div>
|
|
465
465
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">artifactId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">error</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">any</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
466
466
|
<ul>
|
|
467
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
467
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L622">server/src/ai/agent.ts:622</a></li></ul></aside></div></li></ul></section>
|
|
468
468
|
<section class="tsd-panel tsd-member">
|
|
469
469
|
<h3 class="tsd-anchor-link" id="finishagent"><span>finish<wbr/>Agent</span><a href="#finishagent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
470
470
|
<ul class="tsd-signatures">
|
|
@@ -473,7 +473,7 @@ On failure, the original history is restored.</p>
|
|
|
473
473
|
<div class="tsd-description">
|
|
474
474
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
475
475
|
<ul>
|
|
476
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
476
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L249">server/src/ai/agent.ts:249</a></li></ul></aside></div></li></ul></section>
|
|
477
477
|
<section class="tsd-panel tsd-member">
|
|
478
478
|
<h3 class="tsd-anchor-link" id="generateimage"><span>generate<wbr/>Image</span><a href="#generateimage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
479
479
|
<ul class="tsd-signatures">
|
|
@@ -495,7 +495,7 @@ On failure, the original history is restored.</p>
|
|
|
495
495
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">artifactId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">error</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">any</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">></span></h4><p>Promise resolving to <code>{ artifactId }</code> on success or <code>{ error }</code> on failure</p>
|
|
496
496
|
<aside class="tsd-sources">
|
|
497
497
|
<ul>
|
|
498
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
498
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L615">server/src/ai/agent.ts:615</a></li></ul></aside></div></li></ul></section>
|
|
499
499
|
<section class="tsd-panel tsd-member">
|
|
500
500
|
<h3 class="tsd-anchor-link" id="getattachedartifacts"><span>get<wbr/>Attached<wbr/>Artifacts</span><a href="#getattachedartifacts" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
501
501
|
<ul class="tsd-signatures">
|
|
@@ -507,7 +507,7 @@ On failure, the original history is restored.</p>
|
|
|
507
507
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><p>Array of artifact IDs</p>
|
|
508
508
|
<aside class="tsd-sources">
|
|
509
509
|
<ul>
|
|
510
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
510
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L236">server/src/ai/agent.ts:236</a></li></ul></aside></div></li></ul></section>
|
|
511
511
|
<section class="tsd-panel tsd-member">
|
|
512
512
|
<h3 class="tsd-anchor-link" id="getformattedmessages"><span>get<wbr/>Formatted<wbr/>Messages</span><a href="#getformattedmessages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
513
513
|
<ul class="tsd-signatures">
|
|
@@ -525,7 +525,7 @@ On failure, the original history is restored.</p>
|
|
|
525
525
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><p>Array of formatted messages</p>
|
|
526
526
|
<aside class="tsd-sources">
|
|
527
527
|
<ul>
|
|
528
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
528
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L285">server/src/ai/agent.ts:285</a></li></ul></aside></div></li></ul></section>
|
|
529
529
|
<section class="tsd-panel tsd-member">
|
|
530
530
|
<h3 class="tsd-anchor-link" id="getrawmessages"><span>get<wbr/>Raw<wbr/>Messages</span><a href="#getrawmessages" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
531
531
|
<ul class="tsd-signatures">
|
|
@@ -537,7 +537,7 @@ On failure, the original history is restored.</p>
|
|
|
537
537
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><p>Array of message content strings</p>
|
|
538
538
|
<aside class="tsd-sources">
|
|
539
539
|
<ul>
|
|
540
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
540
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L299">server/src/ai/agent.ts:299</a></li></ul></aside></div></li></ul></section>
|
|
541
541
|
<section class="tsd-panel tsd-member">
|
|
542
542
|
<h3 class="tsd-anchor-link" id="hasprompt"><span>has<wbr/>Prompt</span><a href="#hasprompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
543
543
|
<ul class="tsd-signatures">
|
|
@@ -555,7 +555,7 @@ this agent run that turn" is then no, which is what a caller wants to hear.
|
|
|
555
555
|
<li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span></li></ul></div>
|
|
556
556
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
557
557
|
<ul>
|
|
558
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
558
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L435">server/src/ai/agent.ts:435</a></li></ul></aside></div></li></ul></section>
|
|
559
559
|
<section class="tsd-panel tsd-member">
|
|
560
560
|
<h3 class="tsd-anchor-link" id="historychars"><span>history<wbr/>Chars</span><a href="#historychars" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
561
561
|
<ul class="tsd-signatures">
|
|
@@ -567,7 +567,7 @@ this agent run that turn" is then no, which is what a caller wants to hear.
|
|
|
567
567
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><p>Total characters across every message in history</p>
|
|
568
568
|
<aside class="tsd-sources">
|
|
569
569
|
<ul>
|
|
570
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
570
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L501">server/src/ai/agent.ts:501</a></li></ul></aside></div></li></ul></section>
|
|
571
571
|
<section class="tsd-panel tsd-member">
|
|
572
572
|
<h3 class="tsd-anchor-link" id="instructedprompt"><span>instructed<wbr/>Prompt</span><a href="#instructedprompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
573
573
|
<ul class="tsd-signatures">
|
|
@@ -585,7 +585,7 @@ this agent run that turn" is then no, which is what a caller wants to hear.
|
|
|
585
585
|
<li><span><span class="tsd-kind-parameter">maxOutputChars</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></span></li></ul></div>
|
|
586
586
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
587
587
|
<ul>
|
|
588
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
588
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L440">server/src/ai/agent.ts:440</a></li></ul></aside></div></li></ul></section>
|
|
589
589
|
<section class="tsd-panel tsd-member">
|
|
590
590
|
<h3 class="tsd-anchor-link" id="needscompaction"><span>needs<wbr/>Compaction</span><a href="#needscompaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
591
591
|
<ul class="tsd-signatures">
|
|
@@ -603,7 +603,7 @@ dropping messages off the front.</p>
|
|
|
603
603
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True when compaction is worth a call</p>
|
|
604
604
|
<aside class="tsd-sources">
|
|
605
605
|
<ul>
|
|
606
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
606
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L517">server/src/ai/agent.ts:517</a></li></ul></aside></div></li></ul></section>
|
|
607
607
|
<section class="tsd-panel tsd-member">
|
|
608
608
|
<h3 class="tsd-anchor-link" id="notifystatechange"><span>notify<wbr/>State<wbr/>Change</span><a href="#notifystatechange" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
609
609
|
<ul class="tsd-signatures">
|
|
@@ -615,7 +615,7 @@ Triggers SSE updates if callback is registered</p>
|
|
|
615
615
|
</div>
|
|
616
616
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
617
617
|
<ul>
|
|
618
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
618
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L269">server/src/ai/agent.ts:269</a></li></ul></aside></div></li></ul></section>
|
|
619
619
|
<section class="tsd-panel tsd-member">
|
|
620
620
|
<h3 class="tsd-anchor-link" id="pinhistory"><span>pin<wbr/>History</span><a href="#pinhistory" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
621
621
|
<ul class="tsd-signatures">
|
|
@@ -634,7 +634,7 @@ dropped.</p>
|
|
|
634
634
|
</div>
|
|
635
635
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
636
636
|
<ul>
|
|
637
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
637
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L368">server/src/ai/agent.ts:368</a></li></ul></aside></div></li></ul></section>
|
|
638
638
|
<section class="tsd-panel tsd-member">
|
|
639
639
|
<h3 class="tsd-anchor-link" id="preparedprompt"><span>prepared<wbr/>Prompt</span><a href="#preparedprompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
640
640
|
<ul class="tsd-signatures">
|
|
@@ -650,7 +650,7 @@ dropped.</p>
|
|
|
650
650
|
<li><span><span class="tsd-kind-parameter">cacheMessage</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span></li></ul></div>
|
|
651
651
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
652
652
|
<ul>
|
|
653
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
653
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L454">server/src/ai/agent.ts:454</a></li></ul></aside></div></li></ul></section>
|
|
654
654
|
<section class="tsd-panel tsd-member">
|
|
655
655
|
<h3 class="tsd-anchor-link" id="save"><span>save</span><a href="#save" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
656
656
|
<ul class="tsd-signatures">
|
|
@@ -662,7 +662,7 @@ Called automatically after conversation history changes</p>
|
|
|
662
662
|
</div>
|
|
663
663
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
664
664
|
<ul>
|
|
665
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
665
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L244">server/src/ai/agent.ts:244</a></li></ul></aside></div></li></ul></section>
|
|
666
666
|
<section class="tsd-panel tsd-member">
|
|
667
667
|
<h3 class="tsd-anchor-link" id="setonstatechange"><span>set<wbr/>On<wbr/>State<wbr/>Change</span><a href="#setonstatechange" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
668
668
|
<ul class="tsd-signatures">
|
|
@@ -680,7 +680,7 @@ Used for SSE updates to push changes to connected clients</p>
|
|
|
680
680
|
</div></li></ul></div>
|
|
681
681
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
682
682
|
<ul>
|
|
683
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
683
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L261">server/src/ai/agent.ts:261</a></li></ul></aside></div></li></ul></section>
|
|
684
684
|
<section class="tsd-panel tsd-member">
|
|
685
685
|
<h3 class="tsd-anchor-link" id="textprompt"><span>text<wbr/>Prompt</span><a href="#textprompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
686
686
|
<ul class="tsd-signatures">
|
|
@@ -698,7 +698,7 @@ Used for SSE updates to push changes to connected clients</p>
|
|
|
698
698
|
<li><span><span class="tsd-kind-parameter">maxOutputChars</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></span></li></ul></div>
|
|
699
699
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
700
700
|
<ul>
|
|
701
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
701
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L589">server/src/ai/agent.ts:589</a></li></ul></aside></div></li></ul></section>
|
|
702
702
|
<section class="tsd-panel tsd-member">
|
|
703
703
|
<h3 class="tsd-anchor-link" id="trimhistoryifneeded"><span>trim<wbr/>History<wbr/>If<wbr/>Needed</span><a href="#trimhistoryifneeded" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
704
704
|
<ul class="tsd-signatures">
|
|
@@ -720,7 +720,7 @@ came before it, so a specialist handed a second task drops the first.</p>
|
|
|
720
720
|
</div></li></ul></div>
|
|
721
721
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
722
722
|
<ul>
|
|
723
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
723
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L398">server/src/ai/agent.ts:398</a></li></ul></aside></div></li></ul></section>
|
|
724
724
|
<section class="tsd-panel tsd-member">
|
|
725
725
|
<h3 class="tsd-anchor-link" id="withsmallmodel"><span>with<wbr/>Small<wbr/>Model</span><a href="#withsmallmodel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
726
726
|
<ul class="tsd-signatures">
|
|
@@ -737,7 +737,7 @@ came before it, so a specialist handed a second task drops the first.</p>
|
|
|
737
737
|
<li><span><span class="tsd-kind-parameter">fn</span>: <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withsmallmodelt">T</a><span class="tsd-signature-symbol">></span></span></li></ul></div>
|
|
738
738
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withsmallmodelt">T</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
739
739
|
<ul>
|
|
740
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
740
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L469">server/src/ai/agent.ts:469</a></li></ul></aside></div></li></ul></section>
|
|
741
741
|
<section class="tsd-panel tsd-member">
|
|
742
742
|
<h3 class="tsd-anchor-link" id="compactionthresholdchars"><code class="tsd-tag">Static</code><span>compaction<wbr/>Threshold<wbr/>Chars</span><a href="#compactionthresholdchars" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
743
743
|
<ul class="tsd-signatures">
|
|
@@ -754,7 +754,7 @@ to be roughly right — four characters to a token is close enough to make
|
|
|
754
754
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><p>The threshold in characters</p>
|
|
755
755
|
<aside class="tsd-sources">
|
|
756
756
|
<ul>
|
|
757
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
757
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L493">server/src/ai/agent.ts:493</a></li></ul></aside></div></li></ul></section>
|
|
758
758
|
<section class="tsd-panel tsd-member">
|
|
759
759
|
<h3 class="tsd-anchor-link" id="generatenickname"><code class="tsd-tag">Static</code><span>generate<wbr/>Nickname</span><a href="#generatenickname" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
760
760
|
<ul class="tsd-signatures">
|
|
@@ -772,7 +772,7 @@ to be roughly right — four characters to a token is close enough to make
|
|
|
772
772
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>The first word as nickname, or the full name if empty</p>
|
|
773
773
|
<aside class="tsd-sources">
|
|
774
774
|
<ul>
|
|
775
|
-
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/
|
|
775
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/dfdc570ca693648160e8071102843097cd4c2cbc/server/src/ai/agent.ts#L27">server/src/ai/agent.ts:27</a></li></ul></aside></div></li></ul></section></section></details></div>
|
|
776
776
|
<div class="col-sidebar">
|
|
777
777
|
<div class="page-menu">
|
|
778
778
|
<div class="tsd-navigation settings">
|
|
@@ -794,7 +794,7 @@ to be roughly right — four characters to a token is close enough to make
|
|
|
794
794
|
<div><a href="#addtoconversationhistory"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>To<wbr/>Conversation<wbr/>History</span></a><a href="#attachartifact"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>attach<wbr/>Artifact</span></a><a href="#attachdocument"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>attach<wbr/>Document</span></a><a href="#canrespond"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>can<wbr/>Respond</span></a><a href="#compact"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>compact</span></a><a href="#deleteagent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>Agent</span></a><a href="#detachartifact"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>detach<wbr/>Artifact</span></a><a href="#editimage"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>edit<wbr/>Image</span></a><a href="#finishagent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>finish<wbr/>Agent</span></a><a href="#generateimage"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Image</span></a><a href="#getattachedartifacts"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Attached<wbr/>Artifacts</span></a><a href="#getformattedmessages"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Formatted<wbr/>Messages</span></a><a href="#getrawmessages"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Raw<wbr/>Messages</span></a><a href="#hasprompt"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>has<wbr/>Prompt</span></a><a href="#historychars"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>history<wbr/>Chars</span></a><a href="#instructedprompt"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>instructed<wbr/>Prompt</span></a><a href="#needscompaction"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>needs<wbr/>Compaction</span></a><a href="#notifystatechange"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>notify<wbr/>State<wbr/>Change</span></a><a href="#pinhistory"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>pin<wbr/>History</span></a><a href="#preparedprompt"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>prepared<wbr/>Prompt</span></a><a href="#save"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>save</span></a><a href="#setonstatechange"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>On<wbr/>State<wbr/>Change</span></a><a href="#textprompt"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>text<wbr/>Prompt</span></a><a href="#trimhistoryifneeded"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>trim<wbr/>History<wbr/>If<wbr/>Needed</span></a><a href="#withsmallmodel"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Small<wbr/>Model</span></a><a href="#compactionthresholdchars"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>compaction<wbr/>Threshold<wbr/>Chars</span></a><a href="#generatenickname"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>generate<wbr/>Nickname</span></a></div></details></div></details></div>
|
|
795
795
|
<div class="site-menu">
|
|
796
796
|
<nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
|
|
797
|
-
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.
|
|
797
|
+
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.2</a>
|
|
798
798
|
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
799
799
|
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
800
800
|
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|