MCPcopy Create free account

hub / github.com/LMIS-ORG/slime-agentic / functions

Functions2,220 in github.com/LMIS-ORG/slime-agentic

↓ 3 callersMethod_get_mobile_data_working
Returns True if mobile data is working, False otherwise. The mobile data not working when any of the following are true: - Airplane m
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:231
↓ 3 callersMethod_get_server
(self, model_name: str | None = None)
slime/ray/rollout.py:517
↓ 3 callersMethod_get_train
(self, train_number: str)
agentic/ToolOrchestra/tau2/domains/railway/tools.py:102
↓ 3 callersMethod_get_train_instance
(self, train_number: str, date: str)
agentic/ToolOrchestra/tau2/domains/railway/tools.py:107
↓ 3 callersMethod_get_traveler
(self, traveler_id: str)
agentic/ToolOrchestra/tau2/domains/travel/tools.py:62
↓ 3 callersMethod_payment_for_update
Process payment for update reservation. - Wallet payments must be whole dollars and sufficient in balance. - Card/Other payme
agentic/ToolOrchestra/tau2/domains/railway/tools.py:163
↓ 3 callersFunction_quantize_param
(name, weight, weight_block_size)
slime/backends/megatron_utils/megatron_to_hf/processors/quantizer_fp8.py:89
↓ 3 callersMethod_run_speed_test
Simulates running a speed test for mobile data based on current network conditions. Returns a tuple: (speed_mbps, description).
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:289
↓ 3 callersMethod_search_direct_flight
Search for direct flights Args: date: The date of the flight in the format 'YYYY-MM-DD', such as '2024-01-01'. origin
agentic/ToolOrchestra/tau2/domains/airline/tools.py:121
↓ 3 callersMethod_search_direct_train
Search for direct trains on a given date with optional filters.
agentic/ToolOrchestra/tau2/domains/railway/tools.py:193
↓ 3 callersFunction_str_is_int
(x: str)
slime/rollout/rm_hub/math_utils.py:219
↓ 3 callersFunction_strip_stop_tokens
Remove residual stop-token strings from generated text.
agentic/memagent/rollout.py:84
↓ 3 callersMethod_sum_concessions_subtotal_and_tax
(self, items: List[ConcessionItem])
agentic/ToolOrchestra/tau2/domains/movie/tools.py:219
↓ 3 callersMethod_toggle_data
Toggles the master Mobile Data switch. Returns the new state.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:497
↓ 3 callersFunction_truncate_for_judge
(text: str, max_chars: int)
agentic/ToolOrchestra/reward.py:88
↓ 3 callersMethod_update_bucket_weights_from_distributed
Lock → broadcast → clear → unlock → pbar++. Lock prevents NCCL deadlock.
slime/backends/megatron_utils/update_weight/update_weight_from_distributed.py:228
↓ 3 callersMethod_validate_departure
( self, package: Package, departure_date: str, required_slots: int )
agentic/ToolOrchestra/tau2/domains/travel/tools.py:104
↓ 3 callersMethod_validate_seats_exist
(self, auditorium: Auditorium, seat_ids: Set[str])
agentic/ToolOrchestra/tau2/domains/movie/tools.py:138
↓ 3 callersFunction_write_jsonl
(rows: list[dict], output_path: str)
agentic/memagent/prepare_data.py:169
↓ 3 callersMethodall
(cls)
slime/utils/types.py:205
↓ 3 callersMethodcheck_valid_task
Check if the task is valid. Only the tasks that require at least one action are valid.
agentic/ToolOrchestra/tau2/agent/llm_agent.py:219
↓ 3 callersFunctioncompute_approx_kl
Compute the approximate KL divergence between two distributions. Schulman blog: http://joschu.net/blog/kl-approx.html Args: log_
slime/utils/ppo_utils.py:12
↓ 3 callersMethodcompute_log_prob
( self, data_iterator: list[DataIterator], num_microbatches: list[int], store_
slime/backends/megatron_utils/actor.py:335
↓ 3 callersMethodcompute_reward
(self, question: str, model_response: str, groundtruth: str)
agentic/agentflow/core/rewarder.py:8
↓ 3 callersMethodconnect
(self, critic_group)
slime/ray/actor_group.py:139
↓ 3 callersFunctionconvert_qwen2_to_hf
(args, name, param)
slime/backends/megatron_utils/megatron_to_hf/qwen2.py:5
↓ 3 callersFunctiondestroy_process_groups
Destroy all reloadable process groups.
slime/utils/reloadable_process_group.py:284
↓ 3 callersFunctiondisable_forward_pre_hook
Disable forward pre-hooks for provided DDP-wrapped model chunks. Args: model_chunks (Sequence[DDP]): Sequence of DDP modules to disable h
slime/backends/megatron_utils/model.py:140
↓ 3 callersFunctionfind_available_port
(base_port: int)
slime/utils/http_utils.py:17
↓ 3 callersMethodfrom_dict
(data: dict)
slime/utils/types.py:130
↓ 3 callersFunctiongather_log_data
Gather per-rank metrics, reduce by mean on the DP source rank, and log. Expects `log_dict` to contain plain scalars. The DP source rank prin
slime/backends/megatron_utils/data.py:182
↓ 3 callersMethodgen_multi_turn_loss_mask_qwen3
( self, messages: list[dict], tools: list[dict] = None )
slime/utils/mask_utils.py:76
↓ 3 callersMethodgenerate_next_message
Generate the next message from an assistant message. Args: message: The agent message. state: The state of the user s
agentic/ToolOrchestra/tau2/user/base.py:134
↓ 3 callersMethodget_actions
(self)
agentic/agentflow/core/memory.py:24
↓ 3 callersFunctionget_bool_env_var
(name: str, default: str = "false")
slime/utils/external_utils/command_utils.py:235
↓ 3 callersMethodget_buffer_length
(self)
slime/rollout/data_source.py:219
↓ 3 callersMethodget_func_format
Get the function format of the action.
agentic/ToolOrchestra/tau2/data_model/tasks.py:175
↓ 3 callersMethodget_loss_mask
(self, messages: list[dict], tools: list[dict] = None)
slime/utils/mask_utils.py:129
↓ 3 callersMethodget_metadata
(self)
slime/rollout/data_source.py:216
↓ 3 callersFunctionget_seqlen_balanced_partitions
get order of seq lengths to make partitions balanced, this is used in balacing sum of seqlength across dp ranks and microbatches Parameter
slime/utils/seqlen_balancing.py:146
↓ 3 callersMethodget_user_db_hash
Get a hash of the user database Returns None if the database is not available
agentic/ToolOrchestra/tau2/environment/environment.py:274
↓ 3 callersMethodget_user_tools
Get the tools of the domain.
agentic/ToolOrchestra/tau2/environment/environment.py:103
↓ 3 callersFunctiongroup_by
Similar to itertools.groupby, but do not require iterable to be sorted
slime/utils/misc.py:114
↓ 3 callersFunctioninit_process_group
( backend: str | Backend = None, init_method: str | None = None, timeout: timedelta | None = None,
slime/utils/distributed_utils.py:38
↓ 3 callersMethodload_other_checkpoint
(self, model_tag: str, path: str)
slime/backends/megatron_utils/actor.py:586
↓ 3 callersMethodlock
(self)
tests/ci/gpu_lock_exec.py:161
↓ 3 callersMethodmake_tool_call
Make a tool call based on the requestor. Args: tool_name: The name of the tool to call. requestor: The reques
agentic/ToolOrchestra/tau2/environment/environment.py:148
↓ 3 callersMethodopen
(self)
tests/ci/gpu_lock_exec.py:155
↓ 3 callersMethodregister_agent
Decorator to register a new Agent implementation
agentic/ToolOrchestra/tau2/registry.py:98
↓ 3 callersFunctionreload_process_groups
Reload all reloadable process groups.
slime/utils/reloadable_process_group.py:289
↓ 3 callersFunctionremove_padding
Remove vocab padding: param[:vocab_size] for embedding/output layers, else unchanged.
slime/backends/megatron_utils/megatron_to_hf/processors/padding_remover.py:6
↓ 3 callersFunctionrun
Run a coroutine in the background event loop.
slime/utils/async_utils.py:34
↓ 3 callersMethodrun_env_function_call
Runs any function available on agent environment or user environment.
agentic/ToolOrchestra/tau2/environment/environment.py:184
↓ 3 callersMethodset_state
Set the state of the environment given initialization data and a list of messages.
agentic/ToolOrchestra/tau2/environment/environment.py:283
↓ 3 callersMethodsleep
(self)
slime/backends/megatron_utils/actor.py:161
↓ 3 callersMethodstart
(self)
slime/utils/profile_utils.py:96
↓ 3 callersFunctionstrip_param_name_prefix
(name: str)
slime/backends/megatron_utils/misc_utils.py:1
↓ 3 callersFunctionsum_of_token
(x: torch.Tensor, response_lengths: list[int], loss_masks: list[torch.Tensor])
slime/backends/fsdp_utils/actor.py:987
↓ 3 callersMethodtouch
Update access time and count.
slime/router/middleware_hub/radix_tree.py:86
↓ 3 callersMethodupdate_device
Update the mock device state.
agentic/ToolOrchestra/tau2/domains/telecom/user_data_model.py:376
↓ 3 callersFunctionupdate_pydantic_model_with_dict
Return an updated BaseModel instance based on the update_data.
agentic/ToolOrchestra/tau2/utils/pydantic_utils.py:41
↓ 3 callersMethoduse_user_tool
Use a tool available to the user of the domain.
agentic/ToolOrchestra/tau2/environment/environment.py:140
↓ 2 callersMethod__init__
Initialize the LLMAgent.
agentic/ToolOrchestra/tau2/agent/llm_agent.py:79
↓ 2 callersMethod__init__
(self, source_getter: _SourceGetter)
slime/utils/tensor_backper.py:18
↓ 2 callersFunction_agg_metrics
Aggregate per-sample scores; semantically consistent with calc_metrics in ruler_hqa.py.
agentic/memagent/eval_ruler_hqa.py:192
↓ 2 callersFunction_agg_metrics
(records: list[dict], metric_type: str)
agentic/memagent/eval_ruler_general.py:230
↓ 2 callersFunction_allgather_cp_redistribute
Redistribute response tensors from allgather-CP layout to zigzag ring-attn layout. After allgather context parallelism, each rank holds a contigu
slime/backends/megatron_utils/loss.py:145
↓ 2 callersMethod_apply_membership_discount
Apply membership discount only on fare component (not fees/insurance). - gold: 10% - silver: 5% - regular: 0%
agentic/ToolOrchestra/tau2/domains/railway/tools.py:152
↓ 2 callersMethod_assert_beneficiary_owned_by_client
(self, client_id: str, beneficiary_id: str)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:116
↓ 2 callersMethod_assert_card_active_or_blocked
(self, card: Card)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:112
↓ 2 callersFunction_build_extra_tool
Dynamically build the call_expert tool based on the actual model_mapping and pricing.
agentic/ToolOrchestra/tau2/utils/llm_utils.py:270
↓ 2 callersMethod_build_registration_course
( self, course: Course, grading_option: GradingOption, study_level: StudyLevel )
agentic/ToolOrchestra/tau2/domains/school/tools.py:91
↓ 2 callersFunction_call_expert_tool_def
tool definition for func_call orchestrator (call_expert).
agentic/ToolOrchestra/prepare_eval_data.py:68
↓ 2 callersFunction_check_correctness_qa
QA correctness: normalized exact match. Handles numeric answers, short answers, and longer text.
agentic/ToolOrchestra/reward.py:58
↓ 2 callersMethod_check_payment_request
Checks if a payment request has been made.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:1081
↓ 2 callersMethod_check_time_conflicts
(self, courses: List[Course])
agentic/ToolOrchestra/tau2/domains/school/tools.py:134
↓ 2 callersMethod_clean_node_subtree
Clean a node and all its descendants. This is the core cleanup function. Args: node: Node to clean (including all
slime/router/middleware_hub/radix_tree.py:387
↓ 2 callersMethod_coach_for_class
(self, travel_class: TravelClass)
agentic/ToolOrchestra/tau2/domains/railway/tools.py:132
↓ 2 callersFunction_common_args
Arguments shared by both phases.
tests/test_qwen2.5_0.5B_debug_rollout_then_train.py:30
↓ 2 callersMethod_compute_concession_lines
concessions spec: [{item_id, name, size, quantity, price_each}] Add tax_each and total per line.
agentic/ToolOrchestra/tau2/domains/movie/tools.py:192
↓ 2 callersFunction_compute_fqn
(name, vp_stage=vp_stage)
slime/backends/megatron_utils/update_weight/common.py:145
↓ 2 callersMethod_compute_log_prob
Compute token log-probabilities for a list of packed batches. Parameters: model_tag: Which parameters to use, e.g. "actor" or "re
slime/backends/fsdp_utils/actor.py:301
↓ 2 callersMethod_compute_segment_price
Compute a base price per passenger per segment as an integer (dollars). This is a simple model using service_type and travel_class.
agentic/ToolOrchestra/tau2/domains/railway/tools.py:140
↓ 2 callersMethod_count_tokens
(self, text: str)
agentic/ToolOrchestra/orchestra_solver.py:446
↓ 2 callersFunction_create_torch_profiler
(args, name)
slime/utils/profile_utils.py:60
↓ 2 callersMethod_disconnect_vpn
Disconnects any active VPN connection.
agentic/ToolOrchestra/tau2/domains/telecom/user_tools.py:796
↓ 2 callersFunction_extract_final_answer
Extract the final answer from solver's multi-turn response. Tries in order: 1. \\boxed{...} from the response 2. Last numeric value from
agentic/agentflow/rollout.py:175
↓ 2 callersMethod_extract_from_sim
(sim_data: dict)
agentic/ToolOrchestra/tau2_adapter.py:233
↓ 2 callersMethod_extract_from_sim
Extract reward_info from a tau2 simulation result. Mirrors Tau2Adapter._extract_from_sim to handle edge cases (e.g. tau_run_error, no
agentic/ToolOrchestra/eval_orchestra.py:422
↓ 2 callersMethod_find_dish_by_plate
Find the dish that contains the given plate_ref.
agentic/ToolOrchestra/tau2/domains/restaurant/tools.py:83
↓ 2 callersMethod_fsdp2_load_full_state_dict
Load full state dict into FSDP2 model with efficient broadcast from rank 0. This function loads weights from rank 0 and broadcasts to all oth
slime/backends/fsdp_utils/actor.py:229
↓ 2 callersFunction_generate_data_iterator
(rollout_data, micro_batch_size, micro_batch_indices=None)
slime/backends/megatron_utils/data.py:335
↓ 2 callersMethod_generate_with_tools
Build prompt_text using tokenizer.apply_chat_template(tools=...), then call SGLang /generate and return a GenerationOutput (containin
agentic/ToolOrchestra/orchestra_solver.py:351
↓ 2 callersMethod_get_bills_awaiting_payment
Returns the bills in the customer's bill_ids list that are in the AWAITING_PAYMENT status.
agentic/ToolOrchestra/tau2/domains/telecom/tools.py:412
↓ 2 callersMethod_get_catalogue_group
Get a catalogue group from the database.
agentic/ToolOrchestra/tau2/domains/ecommerce/tools.py:59
↓ 2 callersMethod_get_datetime_short
YY-MM-DD-HH-MM in EST
agentic/ToolOrchestra/tau2/domains/medicine/tools.py:95
↓ 2 callersMethod_get_dish
Get a dish from the database.
agentic/ToolOrchestra/tau2/domains/restaurant/tools.py:59
↓ 2 callersMethod_get_forecast
(self, forecast_id: str)
agentic/ToolOrchestra/tau2/domains/weather/tools.py:75
↓ 2 callersMethod_get_init_weight_context_manager
Get context manager for model initialization. Returns a callable that creates a context manager. Uses meta device (no memory allocati
slime/backends/fsdp_utils/actor.py:204
↓ 2 callersMethod_get_loan
(self, loan_id: str)
agentic/ToolOrchestra/tau2/domains/bank/tools.py:90
← previousnext →201–300 of 2,220, ranked by callers