MCPcopy Create free account

hub / github.com/MineDojo/Voyager / functions

Functions423 in github.com/MineDojo/Voyager

↓ 151 callersFunctioncraftItem
(bot, name, count = 1)
voyager/control_primitives/craftItem.js:1
↓ 100 callersFunctionplaceItem
(bot, name, position)
voyager/control_primitives/placeItem.js:1
↓ 87 callersFunctionmineBlock
(bot, name, count = 1)
voyager/control_primitives/mineBlock.js:1
↓ 49 callersFunctionexploreUntil
( bot, direction, maxTime = 60, callback = () => { return false; } )
voyager/control_primitives/exploreUntil.js:2
↓ 41 callersFunctionsmeltItem
(bot, itemName, fuelName, count = 1)
voyager/control_primitives/smeltItem.js:1
↓ 24 callersFunctionf_join
join file paths and expand special symbols like `~` for home dir
voyager/utils/file_utils.py:100
↓ 18 callersFunctionkillMob
(bot, mobName, timeout = 300)
voyager/control_primitives/killMob.js:1
↓ 12 callersFunctionf_expand
(fpath)
voyager/utils/file_utils.py:92
↓ 9 callersFunctionerror
(type: string, message: string)
voyager/env/mineflayer/mineflayer-collectblock/src/Util.ts:9
↓ 9 callersMethodstop
(self)
voyager/env/process_monitor.py:76
↓ 8 callersFunctionload_prompt
(prompt)
voyager/prompts/__init__.py:5
↓ 7 callersMethodadd
* Adds a new async task to this queue. The provided callback should be executed when * the async task is complete. * * @param task - The asyn
voyager/env/mineflayer/mineflayer-collectblock/src/TaskQueue.ts:22
↓ 6 callersFunctioncloseChest
(bot, chestBlock)
voyager/control_primitives/useChest.js:118
↓ 6 callersMethodcollect
* If target is a block: * Causes the bot to break and collect the target block. * * If target is an item drop: * Causes the bot to
voyager/env/mineflayer/mineflayer-collectblock/src/CollectBlock.ts:350
↓ 6 callersFunctioncraftFurnace
(bot)
skill_library/trial1/skill/code/craftFurnace.js:1
↓ 6 callersFunctionmoveToChest
(bot, chestPosition)
voyager/control_primitives/useChest.js:74
↓ 6 callersMethodreset
(self, task, context="", reset_env=True)
voyager/voyager.py:165
↓ 4 callersMethodcleanup
* Removes all attached event listeners from the bot.
voyager/env/mineflayer/mineflayer-collectblock/src/TemporarySubscriber.ts:28
↓ 4 callersMethodclose
(self)
voyager/env/bridge.py:164
↓ 4 callersFunctionfindSuitablePosition
(bot)
skill_library/trial1/skill/code/craftLightningRod.js:1
↓ 4 callersMethodremoveTarget
(target: Collectable)
voyager/env/mineflayer/mineflayer-collectblock/src/Targets.ts:55
↓ 4 callersMethodstep
(self)
voyager/voyager.py:203
↓ 3 callersMethodappendTarget
(target: Collectable)
voyager/env/mineflayer/mineflayer-collectblock/src/Targets.ts:21
↓ 3 callersFunctioncleanUp
()
voyager/control_primitives/exploreUntil.js:44
↓ 3 callersFunctioncraftFishingRod
(bot)
skill_library/trial2/skill/code/craftFishingRod.js:1
↓ 3 callersFunctioncraftTorches
(bot)
skill_library/trial2/skill/code/craftTorches.js:1
↓ 3 callersMethodobserve
()
voyager/env/mineflayer/lib/observation/onSave.js:15
↓ 3 callersMethodrender_chest_observation
(self)
voyager/agents/action.py:56
↓ 3 callersMethodrender_human_message
(self, *, events, task, context, chest_observation)
voyager/agents/critic.py:27
↓ 3 callersMethodrender_system_message
(self)
voyager/agents/critic.py:23
↓ 3 callersMethodsubscribeTo
* Adds a new temporary event listener to the bot. * * @param event - The event to subscribe to. * @param callback - The function to execute.
voyager/env/mineflayer/mineflayer-collectblock/src/TemporarySubscriber.ts:18
↓ 3 callersMethodunpause
(self)
voyager/env/bridge.py:182
↓ 2 callersMethodcheck_process
(self)
voyager/env/bridge.py:73
↓ 2 callersMethodclear
()
voyager/env/mineflayer/mineflayer-collectblock/src/Targets.ts:51
↓ 2 callersFunctionfix_and_parse_json
Fix and parse JSON string
voyager/utils/json_utils.py:144
↓ 2 callersFunctiongetSurroundingBlocks
(bot, x_distance, y_distance, z_distance)
voyager/env/mineflayer/lib/observation/voxels.js:42
↓ 2 callersMethodget_task_context
(self, task)
voyager/agents/curriculum.py:417
↓ 2 callersFunctionhandleError
(err)
voyager/env/mineflayer/index.js:338
↓ 2 callersFunctionmineBlock
( bot: Bot, block: Block, options: CollectOptionsFull )
voyager/env/mineflayer/mineflayer-collectblock/src/CollectBlock.ts:175
↓ 2 callersMethodpause
(self)
voyager/env/bridge.py:175
↓ 2 callersMethodrecord
(self, events, task)
voyager/utils/record_utils.py:27
↓ 2 callersMethodrender_human_message
(self, *, events, chest_observation)
voyager/agents/curriculum.py:209
↓ 2 callersMethodrender_observation
(self, *, events, chest_observation)
voyager/agents/curriculum.py:139
↓ 2 callersMethodretrieve_skills
(self, query)
voyager/agents/skill.py:114
↓ 2 callersMethodrollout
(self, *, task, context, reset_env=True)
voyager/voyager.py:287
↓ 2 callersMethodrun
(self)
voyager/env/process_monitor.py:69
↓ 2 callersMethodrun_qa_step2_answer_questions
(self, question)
voyager/agents/curriculum.py:490
↓ 2 callersMethodupdate_elapsed_time
(self, event)
voyager/utils/record_utils.py:93
↓ 2 callersMethodupdate_exploration_progress
(self, info)
voyager/agents/curriculum.py:329
↓ 2 callersMethodupdate_items
(self, event)
voyager/utils/record_utils.py:77
↓ 1 callersFunction_f_copytree
Copied from python standard lib shutil.copytree except that we allow exist_ok Use f_copytree as entry
voyager/utils/file_utils.py:266
↓ 1 callersFunction_fill_extras
(extras)
setup.py:26
↓ 1 callersFunction_include_patterns
Factory function that can be used with copytree() ignore parameter. Arguments define a sequence of glob-style patterns that are used to speci
voyager/utils/file_utils.py:334
↓ 1 callersFunction_read_file
(fname)
setup.py:12
↓ 1 callersFunction_read_install_requires
()
setup.py:19
↓ 1 callersMethodadd_new_skill
(self, info)
voyager/agents/skill.py:61
↓ 1 callersFunctionadd_quotes_to_property_names
Add quotes to property names in a JSON string. Args: json_string (str): The JSON string. Returns: str: The JSON string wi
voyager/utils/json_utils.py:55
↓ 1 callersMethodai_check_task_success
(self, messages, max_retries=5)
voyager/agents/critic.py:91
↓ 1 callersMethodappendTargets
(targets: Collectable[])
voyager/env/mineflayer/mineflayer-collectblock/src/Targets.ts:15
↓ 1 callersFunctionbalance_braces
Balance the braces in a JSON string. Args: json_string (str): The JSON string. Returns: str: The JSON string with braces
voyager/utils/json_utils.py:77
↓ 1 callersMethodcancelTask
* Cancels the current collection task, if still active. * * @param cb - The callback to use when the task is stopped.
voyager/env/mineflayer/mineflayer-collectblock/src/CollectBlock.ts:439
↓ 1 callersFunctioncheckItemInsideChest
(bot, chestPosition)
voyager/control_primitives/useChest.js:61
↓ 1 callersMethodcheck_task_success
( self, *, events, task, context, chest_observation, max_retries=5 )
voyager/agents/critic.py:116
↓ 1 callersMethodclean_up_tasks
(self)
voyager/agents/curriculum.py:346
↓ 1 callersFunctioncollectAll
( bot: Bot, options: CollectOptionsFull )
voyager/env/mineflayer/mineflayer-collectblock/src/CollectBlock.ts:18
↓ 1 callersFunctioncorrect_json
Correct common JSON errors. Args: json_str (str): The JSON string.
voyager/utils/json_utils.py:116
↓ 1 callersFunctioncraftCraftingTable
(bot)
skill_library/trial1/skill/code/craftCraftingTable.js:1
↓ 1 callersFunctioncraftSticks
(bot)
skill_library/trial2/skill/code/craftSticks.js:1
↓ 1 callersFunctioncraftWoodenPickaxe
(bot)
skill_library/trial1/skill/code/craftWoodenPickaxe.js:1
↓ 1 callersMethoddecompose_task
(self, task)
voyager/voyager.py:370
↓ 1 callersFunctionemptyInventory
(bot: Bot, chestLocations: Vec3[], itemFilter: ItemFilter, cb?: Callback)
voyager/env/mineflayer/mineflayer-collectblock/src/Inventory.ts:37
↓ 1 callersFunctionemptyInventoryIfFull
(bot: Bot, chestLocations: Vec3[], itemFilter: ItemFilter, cb?: Callback)
voyager/env/mineflayer/mineflayer-collectblock/src/Inventory.ts:30
↓ 1 callersFunctionevaluateCode
(code, programs)
voyager/env/mineflayer/index.js:253
↓ 1 callersFunctionextract_char_position
Extract the character position from the JSONDecodeError message. Args: error_message (str): The error message from the JSONDecodeError
voyager/utils/json_utils.py:38
↓ 1 callersFunctionf_copy
Supports both dir and file. Supports glob wildcard.
voyager/utils/file_utils.py:249
↓ 1 callersFunctionf_copytree
(fsrc, fdst, symlinks=False, ignore=None, include=None, exist_ok=True)
voyager/utils/file_utils.py:358
↓ 1 callersFunctionf_listdir
Args: full_path: True to return full paths to the dir contents filter: function that takes in file name and returns True to inclu
voyager/utils/file_utils.py:111
↓ 1 callersFunctionf_mkdir
Recursively creates all the subdirs If exist, do nothing.
voyager/utils/file_utils.py:156
↓ 1 callersFunctionf_remove
If exist, remove. Supports both dir and file. Supports glob wildcard.
voyager/utils/file_utils.py:227
↓ 1 callersFunctionfailedCraftFeedback
(bot, name, item, craftingTable)
voyager/control_primitives/craftHelper.js:1
↓ 1 callersFunctionfindFromVein
(bot: Bot, block: Block, maxBlocks: number, maxDistance: number, floodRadius: number)
voyager/env/mineflayer/mineflayer-collectblock/src/BlockVeins.ts:4
↓ 1 callersMethodfindFromVein
* Loads all touching blocks of the same type to the given block and returns them as an array. * This effectively acts as a flood fill algorithm t
voyager/env/mineflayer/mineflayer-collectblock/src/CollectBlock.ts:419
↓ 1 callersFunctionfindSuitablePosition
(bot)
skill_library/trial1/skill/code/smeltFiveRawIronV2.js:1
↓ 1 callersFunctionfindSuitablePosition
(bot)
skill_library/trial3/skill/code/craftBirchBoat.js:1
↓ 1 callersFunctionfix_invalid_escape
(json_str: str, error_message: str)
voyager/utils/json_utils.py:104
↓ 1 callersMethodgenerate_skill_description
(self, program_name, program_code)
voyager/agents/skill.py:102
↓ 1 callersMethodgetClosest
* Gets the closest target to the bot in this list. * * @returns The closest target, or null if there are no targets.
voyager/env/mineflayer/mineflayer-collectblock/src/Targets.ts:31
↓ 1 callersFunctiongetClosestChest
(bot: Bot, chestLocations: Vec3[])
voyager/env/mineflayer/mineflayer-collectblock/src/Inventory.ts:11
↓ 1 callersMethodgetEntities
()
voyager/env/mineflayer/lib/observation/status.js:75
↓ 1 callersMethodgetEquipment
()
voyager/env/mineflayer/lib/observation/status.js:66
↓ 1 callersFunctiongetInventoryItems
(bot)
voyager/env/mineflayer/lib/observation/inventory.js:19
↓ 1 callersFunctiongetInventoryItems
(bot)
voyager/env/mineflayer/lib/observation/voxels.js:59
↓ 1 callersFunctiongetItemFromChest
(bot, chestPosition, itemsToGet)
voyager/control_primitives/useChest.js:1
↓ 1 callersMethodgetTime
()
voyager/env/mineflayer/lib/observation/status.js:43
↓ 1 callersMethodget_mc_command
(self)
voyager/env/minecraft_launcher.py:61
↓ 1 callersMethodget_mc_instance
(self)
voyager/env/bridge.py:64
↓ 1 callersMethodget_mineflayer_process
(self, server_port)
voyager/env/bridge.py:50
↓ 1 callersFunctiongivePlacedItemBackSingle
(bot, name, position)
voyager/control_primitives/givePlacedItemBack.js:10
↓ 1 callersFunctiongotoChest
(bot: Bot, location: Vec3, cb?: Callback)
voyager/env/mineflayer/mineflayer-collectblock/src/Inventory.ts:64
↓ 1 callersFunctionhost_name
Get host name, alias with ``socket.gethostname()``
voyager/utils/file_utils.py:34
next →1–100 of 423, ranked by callers