MCPcopy Index your code

hub / github.com/rllm-org/rllm / functions

Functions1,799 in github.com/rllm-org/rllm

↓ 533 callersMethodget
Get a tool class by name. Args: name: The name of the tool to retrieve Returns: The tool class if f
rllm/tools/registry.py:51
↓ 93 callersMethodget
Get a trace/signal by ID. Args: trace_id: Trace/signal ID Returns: TraceContext object or None if n
rllm/sdk/store/sqlite_store.py:334
↓ 73 callersMethodload_dataset
Load a dataset from the registry. Args: name: Name of the dataset to load split: Split name to load (e.g., 'train', '
rllm/data/dataset.py:250
↓ 58 callersMethodlower
(text)
rllm/rewards/search_reward.py:26
↓ 47 callersFunctionload_dataset
Load a dataset from a JSON file based on the dataset enum. This function takes a dataset enum value and loads the corresponding JSON file fro
rllm/data/utils.py:11
↓ 47 callersMethodregister_dataset
Register a dataset by saving it to disk and updating the registry. Args: name: Name of the dataset data: List of dict
rllm/data/dataset.py:197
↓ 34 callersFunctionget_current_otel_metadata
Get current metadata from baggage.
rllm/sdk/session/opentelemetry.py:94
↓ 30 callersMethodget_data
Get the dataset data.
rllm/data/dataset.py:37
↓ 28 callersMethodlog
(self, data, step, backend=None)
rllm/utils/tracking.py:180
↓ 28 callersMethodparse
Extract tool calls from the model response.
rllm/parser/tool_parser.py:10
↓ 26 callersMethodencode
Encode queries or passages into embeddings.
examples/search/retrieval/server.py:108
↓ 26 callersMethodtrain
(self)
rllm/trainer/agent_trainer.py:92
↓ 25 callersFunctionotel_session
Create an OpenTelemetry session context manager.
rllm/sdk/session/opentelemetry.py:111
↓ 24 callersMethodcreate
(self, *args: Any, stream: Literal[True], **kwargs: Any)
rllm/sdk/chat/openai_worked.py:517
↓ 24 callersMethodsearch
(self, query: str, num: int = None, return_score: bool = False)
examples/search/retrieval/server.py:182
↓ 23 callersMethodstart
Start the connection manager thread.
rllm/environments/tools/mcp_env.py:34
↓ 22 callersFunctionget_current_cv_metadata
Get current metadata from ContextVar. Returns: Metadata dict or empty dict if no metadata is set.
rllm/sdk/session/contextvar.py:37
↓ 22 callersMethodselect
Select a subset of the dataset (HuggingFace-compatible API). Args: indices: List or range of indices to select Returns:
rllm/data/dataset.py:81
↓ 20 callersMethodresult
Get the output from the trajectory (backward compatibility).
rllm/sdk/protocol.py:143
↓ 20 callersMethodto_dict
(self)
rllm/agents/agent.py:27
↓ 19 callersMethodreset
(self, task=None)
rllm/environments/frozenlake/frozenlake.py:210
↓ 19 callersMethodsleep
Sleep all rollout replica instances asynchronously.
rllm/engine/rollout/verl_engine.py:108
↓ 18 callersFunction_get_scoped_client
Apply proxy URL rewriting and extra headers to client.
rllm/sdk/chat/openai_worked.py:53
↓ 18 callersFunctionsafe_import
(module_path, class_name)
rllm/trainer/env_agent_mappings.py:1
↓ 17 callersMethodreset
Reset the environment and return initial observations.
rllm/environments/tools/tool_env.py:49
↓ 16 callersFunctiontruncatefn
(s, length=300)
rllm/rewards/code_utils/livecodebench.py:31
↓ 15 callersFunctioncolorful_print
(string: str, *args, **kwargs)
rllm/utils/visualization.py:60
↓ 15 callersMethodexecute_tasks
(self, tasks: list[dict], task_ids: list[str] | None = None, **kwargs)
rllm/engine/agent_sdk_engine.py:361
↓ 15 callersMethodget_data_path
Get the absolute path of the dataset file. Returns: Optional[str]: The absolute path of the dataset file, or None if the dataset
rllm/data/dataset.py:96
↓ 15 callersMethodrun
Execute the workflow on a single task Args: task: The task to execute. uid: The unique identifier for the task.
rllm/workflows/workflow.py:53
↓ 15 callersMethodstep
Take a step in the environment based on the action. Args: action: Action from the agent (tool calls or final response)
rllm/environments/tools/mcp_env.py:219
↓ 14 callersMethodreset
Reset the environment and return initial observations.
rllm/environments/tools/mcp_env.py:213
↓ 14 callersMethodrun_in_executor
Run a function in seperate thread pool executor. Args: fn: The function to run. *args: The arguments to pass to the f
rllm/workflows/workflow.py:278
↓ 14 callersMethodstep
Take a step in the environment based on the action. Args: actions: List containing a single action string from the agent
rllm/environments/tools/tool_env.py:55
↓ 12 callersFunction_get_forwarded_env_vars
Get the forwarded environment variables. The `RLLM_EXCLUDE` environment variable can be used to exclude specific environment variables or all
rllm/trainer/verl/ray_runtime_env.py:40
↓ 12 callersFunctionextract_completion_tokens
Extract completion token IDs from response payload. Looks for token IDs in various locations within the response: 1. choice.output_token_ids
rllm/sdk/chat/util.py:39
↓ 12 callersMethodfrom_dict
(cls, data: dict)
rllm/agents/agent.py:45
↓ 12 callersFunctiongenerate_random_map
Generates a random valid map (one that has a path from start to goal) Args: size: size of each side of the grid p: probability th
rllm/environments/frozenlake/frozenlake.py:48
↓ 12 callersMethodget_model_response
(self, messages: list[dict], **kwargs)
rllm/engine/rollout/verl_engine.py:46
↓ 12 callersMethodrepeat
Repeat the dataset n times, keeping repeated entries adjacent. Args: n: Number of times to repeat the dataset Returns:
rllm/data/dataset.py:41
↓ 12 callersMethodstep
- Map custom action to gymnasium FrozenLakeEnv action and take the step - Check if the action is effective (whether player moves in t
rllm/environments/frozenlake/frozenlake.py:227
↓ 11 callersFunction_log_trace
Log LLM call to tracer.
rllm/sdk/chat/openai_worked.py:62
↓ 11 callersFunctionassemble_routing_metadata
Return the metadata dict that should be routed through the proxy slug.
rllm/sdk/proxy/metadata_slug.py:20
↓ 10 callersFunctionbprint
(s: str)
rllm/trainer/tinker/tinker_metrics_utils.py:34
↓ 10 callersMethodclose
Close the environment and clean up resources.
rllm/environments/swe/swe.py:153
↓ 9 callersFunctionmerge_args
Merge positional and keyword arguments into a single dict. Supports passing a single dict as the first positional argument, which will be mer
rllm/sdk/chat/util.py:14
↓ 9 callersMethodparse
(self, messages, add_generation_prompt=False, is_first_msg=False, **kwargs)
rllm/parser/chat_template_parser.py:31
↓ 8 callersMethod_load_registry
Load the dataset registry from the registry file.
rllm/data/dataset.py:176
↓ 8 callersFunctioncompute_pass_at_k
(results)
rllm/utils/compute_pass_at_k.py:7
↓ 8 callersFunctionget_chat_client_async
Get async OpenAI chat client with automatic session tracking. Async version of get_chat_client(). See get_chat_client() for details. Returns
rllm/sdk/shortcuts.py:100
↓ 8 callersMethodrun
(self, task: dict, uid: str, **kwargs)
examples/strands/strands_workflow.py:16
↓ 8 callersMethodupdate_from_env
Process environment feedback and update internal state.
rllm/agents/math_agent.py:20
↓ 7 callersMethod_connect
Create a configured async SQLite connection.
rllm/sdk/store/sqlite_store.py:112
↓ 7 callersMethodclose
Close tracer and flush pending traces. This method should clean up resources and ensure all traces are persisted before retu
rllm/sdk/tracers/base.py:96
↓ 7 callersMethodfinish
(self)
rllm/utils/tracking.py:269
↓ 7 callersMethodget_parser
Factory method to get the appropriate tool parser based on a string identifier. Args: tokenizer: The tokenizer to use with the pa
rllm/parser/tool_parser.py:20
↓ 7 callersMethodrender
(self, mode="tiny_rgb_array")
rllm/environments/frozenlake/frozenlake.py:253
↓ 7 callersMethodrun
Execute the main PPO training workflow. This method sets up the distributed training environment, initializes workers, datasets, and
rllm/trainer/verl/train_agent_ppo.py:63
↓ 7 callersMethodrun
(self, task: dict, uid: str, **kwargs)
examples/geo3k/geo3k_workflow.py:20
↓ 7 callersFunctionsession
Create session context for automatic trace tracking with auto-generated name. Session name is auto-generated. Nested sessions inherit parent meta
rllm/sdk/shortcuts.py:40
↓ 7 callersMethodshuffle
Shuffle the dataset (HuggingFace-compatible API). Args: seed: Random seed for reproducibility Returns: Datas
rllm/data/dataset.py:61
↓ 7 callersMethodupdate_from_env
Update the agent's state based on environment feedback. Args: observation: Environment observation (task instruction or
rllm/agents/appworld_react_agents.py:386
↓ 7 callersMethodverify_equivalence
Verify that parsing messages together is equivalent to parsing them individually. Args: messages (list): List of message dictiona
rllm/parser/chat_template_parser.py:40
↓ 6 callersMethod_ensure_initialized
Ensure database is initialized (lazy initialization).
rllm/sdk/store/sqlite_store.py:91
↓ 6 callersMethod_extract_code_from_response
Extract Python code from the model's response. Supported formats: 1. ```python ... ``` 2. Code: ... 3. Whole
rllm/agents/appworld_react_agents.py:511
↓ 6 callersFunction_format_token
Formats a token string with the given click style.
rllm/utils/visualization.py:30
↓ 6 callersMethod_pad_dataproto_to_world_size
(self, batch)
rllm/trainer/verl/agent_ppo_trainer.py:932
↓ 6 callersMethod_validate_agent
(self)
rllm/trainer/verl/agent_ppo_trainer.py:456
↓ 6 callersMethodcommit
Commit a trajectory for training. Args: name: The name of the trajectory. agent: The agent that generated the traject
rllm/workflows/workflow.py:90
↓ 6 callersMethodcreate_sampling_client
Create a sampling client from a checkpoint path. Args: sampler_path: Path to sampler checkpoint Returns:
rllm/trainer/tinker/tinker_policy_trainer.py:287
↓ 6 callersMethodget_proxy_url
Get the unified proxy endpoint URL.
rllm/sdk/proxy/proxy_manager.py:103
↓ 6 callersMethodjson
(self)
tests/envs/test_tool_env.py:20
↓ 6 callersMethodsearch
Dense retrieval using multi-GPU sharded FAISS.
examples/sdk/langgraph/rag_server.py:148
↓ 6 callersMethodstop
Stop the connection manager thread.
rllm/environments/tools/mcp_env.py:50
↓ 6 callersMethodsuccess
Check if the agent has reacched the goal (G) or hole (H)
rllm/environments/frozenlake/frozenlake.py:220
↓ 6 callersMethodtimed_env_call
Wrapper for environment calls with timing. Args: func: The function to call (typically env.reset or env.step) *args:
rllm/workflows/timing_mixin.py:78
↓ 6 callersMethodupdate_from_env
(*args, **kwargs)
rllm/workflows/simple_workflow.py:17
↓ 6 callersMethodupdate_from_env
Updates the agent's state based on environment feedback. Formats observation and updates the trajectory.
rllm/agents/tool_agent.py:86
↓ 6 callersMethodupdate_from_model
Updates the agent's internal state based on the model's response.
rllm/agents/math_agent.py:47
↓ 5 callersMethod__init__
(self)
examples/deepresearch/deepresearch_tools.py:305
↓ 5 callersFunction__targspec
(func, specs, attr="__orig_arg__")
rllm/rewards/code_utils/pyext2.py:12
↓ 5 callersMethod_execute_tool_calls
(self, tool_calls: list[dict[Any, Any]])
rllm/environments/tools/tool_env.py:111
↓ 5 callersMethod_initialize_from_task
Initialize the agent with task information from the first observation. Args: observation: Initial observation containing
rllm/agents/appworld_react_agents.py:447
↓ 5 callersFunctionargspec
(f)
rllm/rewards/code_utils/pyext2.py:82
↓ 5 callersMethodexecute_tasks
Run asynchronous workflow execution with retry logic for multiple tasks. Args: tasks: List of task dictionaries to process.
rllm/engine/agent_workflow_engine.py:132
↓ 5 callersFunctionfilter_trajectories_by_reward
Filter trajectories based on reward
rllm/trajectory_visualizer.py:13
↓ 5 callersMethodgenerate
Synchronous version of generate that wraps the async method.
rllm/integrations/smolagents.py:382
↓ 5 callersMethodgenerate_async
Async version of generate that can be called from async contexts.
rllm/integrations/smolagents.py:333
↓ 5 callersMethodget_by_session_uid
Fast lookup of all traces for a session context. Uses the composite indexed junction table for optimal performance. Args:
rllm/sdk/store/sqlite_store.py:494
↓ 5 callersMethodget_current_state
Returns the agent's current state as a dictionary. This method provides access to the agent's internal state at the current step,
rllm/agents/agent.py:216
↓ 5 callersMethodget_tool_prompt
Get the tool prompt for the model.
rllm/parser/tool_parser.py:15
↓ 5 callersMethodinitialize_pool
Initialize semaphore for controlling concurrent task execution. Creates asyncio semaphore to limit parallel execution. Idempotent - s
rllm/engine/agent_sdk_engine.py:154
↓ 5 callersFunctionis_valid
(board: list[list[str]], max_size: int)
rllm/environments/frozenlake/frozenlake.py:22
↓ 5 callersMethodrequest
Override request() to add tracing and proxy routing to ALL API calls.
rllm/sdk/chat/openai.py:371
↓ 5 callersMethodsave_checkpoint_async
Save checkpoint and return paths. Args: batch_idx: Current batch index kind: Checkpoint kind ("state", "samp
rllm/trainer/tinker/tinker_policy_trainer.py:263
↓ 5 callersMethodset_sampling_client
Set the sampling client for inference. Args: sampling_client: Tinker SamplingClient instance
rllm/engine/rollout/tinker_engine.py:52
↓ 5 callersMethodupdate_from_env
Updates the agent's internal state after an environment step. Includes logic to check if the observation changed from the previous st
rllm/agents/frozenlake_agent.py:136
↓ 4 callersMethod_get_player_position
(self)
rllm/environments/frozenlake/frozenlake.py:207
↓ 4 callersFunction_log_trace
Log LLM call to tracer.
rllm/sdk/chat/openai.py:40
↓ 4 callersFunction_read_baggage
Read session context from W3C baggage.
rllm/sdk/session/opentelemetry.py:68
next →1–100 of 1,799, ranked by callers