SYMBOL INDEX (1736 symbols across 203 files) FILE: examples/callback/repair_main.py function parse_output (line 11) | def parse_output(raw_output: str) -> ParsedOutput: FILE: examples/demos/repair_main.py function parse_output (line 11) | def parse_output(raw_output: str) -> ParsedOutput: FILE: examples/optimizer/fever_evaluator.py class FEVEREvaluator (line 8) | class FEVEREvaluator(OptimizerEvaluator): method __init__ (line 9) | def __init__( method get_scope (line 17) | def get_scope(self) -> ScopeType: method extract_answer (line 66) | def extract_answer(self, document: str) -> bool | None: method score (line 85) | def score(self, document: str, ground_truth: Any) -> float: FILE: examples/optimizer/gsm8k_evaluator.py class Gsm8kEvaluator (line 9) | class Gsm8kEvaluator(OptimizerEvaluator): method __init__ (line 10) | def __init__( method get_scope (line 17) | def get_scope(self) -> ScopeType: method score (line 67) | def score(self, document: str, ground_truth: Any) -> float: FILE: examples/optimizer/gsmhard_evaluator.py function is_float (line 9) | def is_float(s: str | float) -> str: class GsmHardEvaluator (line 17) | class GsmHardEvaluator(OptimizerEvaluator): method __init__ (line 18) | def __init__( method get_scope (line 26) | def get_scope(self) -> ScopeType: method score (line 77) | def score(self, document: str, ground_truth: Any) -> float: FILE: examples/optimizer/mbpp_dataset.py class SelectableList (line 11) | class SelectableList(list): method select (line 12) | def select(self, iterable): class MBPPDataset (line 16) | class MBPPDataset(dict): method __init__ (line 17) | def __init__(self, dataset_path: str) -> None: method __getitem__ (line 82) | def __getitem__(self, key): method __setitem__ (line 85) | def __setitem__(self, key, val) -> None: FILE: examples/optimizer/mbpp_evaluator.py class MBPPEvaluator (line 12) | class MBPPEvaluator(OptimizerEvaluator): method __init__ (line 13) | def __init__( method get_scope (line 21) | def get_scope(self) -> ScopeType: method extract_answer (line 61) | def extract_answer(self, document: str) -> str: method score (line 68) | def score(self, document: str, ground_truth: Any) -> float: FILE: examples/optimizer/process_fever.py function clean_fever (line 46) | def clean_fever(text: str) -> str: function search_new (line 67) | def search_new( function searcher (line 93) | def searcher(row: dict[str, Any], auto_suggest: bool): function remove_accents (line 106) | def remove_accents(x: str) -> str: function evidence_mapper (line 172) | def evidence_mapper(evidence: list[tuple]): function evidence_mapper_sentence (line 184) | def evidence_mapper_sentence(evidences: list[tuple[str, int]]): function search (line 316) | def search(query: str) -> tuple: function trajectorize (line 325) | def trajectorize(row: dict[str, Any]) -> dict[str, Any]: function sentencify (line 417) | def sentencify(row: dict[str, Any]) -> dict[str, str]: FILE: examples/optimizer/process_grammar_correction.py function save_jsonl (line 28) | def save_jsonl(dataset, path: Path) -> None: FILE: examples/optimizer/process_gsm8k.py function parse_answers (line 31) | def parse_answers(row: dict[str, Any]) -> dict[str, Any]: function react_trajectory (line 48) | def react_trajectory(row: dict[str, Any]) -> dict[str, list[str]]: function rewoo_trajectory (line 101) | def rewoo_trajectory(row: dict[str, Any]) -> dict[str, list[str]]: FILE: examples/optimizer/process_mbpp.py function trajectify (line 30) | def trajectify(row: dict[str, Any]) -> dict[str, list[str]]: FILE: examples/rag/rag.py function parse (line 8) | def parse(filename: str, chunk_size: int, chunk_overlap: int) -> list[str]: function rag_index (line 29) | def rag_index( function get_or_create_client (line 76) | def get_or_create_client(database_name: str): function rag_retrieve (line 89) | def rag_retrieve( FILE: examples/tutorial/sdk/hello_dict.py function main (line 4) | def main(): FILE: examples/tutorial/sdk/hello_file.py function main (line 4) | def main(): FILE: examples/tutorial/sdk/hello_parallel.py function _run_agent (line 13) | def _run_agent(name): FILE: examples/tutorial/sdk/hello_prog.py function main (line 5) | def main(): FILE: examples/tutorial/sdk/hello_str.py function main (line 13) | def main(): FILE: examples/tutorial/sdk/run_pdl.py function my_pdl_program (line 5) | def my_pdl_program(scope): function another (line 14) | def another(scope): function main (line 24) | def main(): FILE: pdl-live-react/demos/beeai/test1.py function main (line 9) | async def main() -> None: FILE: pdl-live-react/src-tauri/build.rs function main (line 1) | fn main() { FILE: pdl-live-react/src-tauri/src/cli.rs function setup (line 12) | pub fn setup(app: &mut tauri::App) -> Result Result { FILE: pdl-live-react/src-tauri/src/commands/read_trace.rs function read_trace (line 5) | pub fn read_trace(trace_file: &str) -> Result, String> { FILE: pdl-live-react/src-tauri/src/commands/replay_prep.rs function replay_prep (line 10) | pub async fn replay_prep( FILE: pdl-live-react/src-tauri/src/compile/beeai.rs type BeeAiInputStateDict (line 32) | struct BeeAiInputStateDict { type BeeAiInputState (line 37) | struct BeeAiInputState { type BeeAiInput (line 42) | struct BeeAiInput { type BeeAiToolSchema (line 54) | struct BeeAiToolSchema { type BeeAiToolState (line 58) | struct BeeAiToolState { type BeeAiTool (line 65) | struct BeeAiTool { type BeeAiLlmParametersState (line 72) | struct BeeAiLlmParametersState { type BeeAiLlmParameters (line 77) | struct BeeAiLlmParameters { type BeeAiWorkflowStepStateAgentMetadataStateDict (line 82) | struct BeeAiWorkflowStepStateAgentMetadataStateDict { type BeeAiWorkflowStepStateAgentMetadataState (line 93) | struct BeeAiWorkflowStepStateAgentMetadataState { type BeeAiWorkflowStepStateAgentMetadata (line 98) | struct BeeAiWorkflowStepStateAgentMetadata { type BeeAiWorkflowStepStateDict (line 103) | struct BeeAiWorkflowStepStateDict { type BeeAiWorkflowStepState (line 107) | struct BeeAiWorkflowStepState { type BeeAiWorkflowStep (line 112) | struct BeeAiWorkflowStep { type BeeAiWorkflowInner (line 117) | struct BeeAiWorkflowInner { type BeeAiWorkflow (line 124) | struct BeeAiWorkflow { type BeeAiProgram (line 128) | struct BeeAiProgram { function a_tool (line 133) | fn a_tool(tool: &BeeAiToolState) -> Value { function strip_nulls (line 149) | fn strip_nulls(parameters: &HashMap) -> HashMap) -> Map { function with_tools (line 171) | fn with_tools( function call_tools (line 193) | fn call_tools(model: &String, parameters: &HashMap) -> Pd... function json_loads (line 278) | fn json_loads( function json_schema_type_to_pdl_type (line 309) | fn json_schema_type_to_pdl_type(spec: &Value) -> PdlType { function json_schema_to_pdl (line 353) | fn json_schema_to_pdl(properties: &HashMap) -> HashMap) -> HashMap (&str, &str) { function python_source_to_json (line 374) | fn python_source_to_json(source_file_path: &str, debug: bool) -> Result<... function compile (line 403) | pub fn compile(source_file_path: &str, debug: bool) -> Result Result { method start (line 105) | pub fn start() -> Result { method end (line 112) | pub fn end(&mut self) -> Result<(), TimingError> { type TimingError (line 97) | type TimingError = Box; type Metadata (line 122) | pub struct Metadata { type CallBlock (line 159) | pub struct CallBlock { method new (line 171) | pub fn new(call: String) -> Self { type SequencingBlock (line 180) | pub trait SequencingBlock { method kind (line 181) | fn kind(&self) -> &str; method role (line 182) | fn role(&self) -> &Option; method items (line 183) | fn items(&self) -> &Vec; method with_items (line 184) | fn with_items(&self, items: Vec) -> Self; method parser (line 185) | fn parser(&self) -> &Option; method to_block (line 186) | fn to_block(&self) -> Body; method result_for (line 187) | fn result_for(&self, output_results: Vec) -> PdlResult; method messages_for (line 188) | fn messages_for(&self, output_messages: &Vec) -> Vec; method kind (line 206) | fn kind(&self) -> &str { method role (line 209) | fn role(&self) -> &Option { method items (line 212) | fn items(&self) -> &Vec { method with_items (line 215) | fn with_items(&self, items: Vec) -> Self { method parser (line 220) | fn parser(&self) -> &Option { method to_block (line 223) | fn to_block(&self) -> Body { method result_for (line 226) | fn result_for(&self, output_results: Vec) -> PdlResult { method messages_for (line 232) | fn messages_for(&self, output_messages: &Vec) -> Vec { method kind (line 259) | fn kind(&self) -> &str { method role (line 262) | fn role(&self) -> &Option { method items (line 265) | fn items(&self) -> &Vec { method with_items (line 268) | fn with_items(&self, items: Vec) -> Self { method parser (line 273) | fn parser(&self) -> &Option { method to_block (line 276) | fn to_block(&self) -> Body { method result_for (line 279) | fn result_for(&self, output_results: Vec) -> PdlResult { method messages_for (line 291) | fn messages_for(&self, output_messages: &Vec) -> Vec { type LastOfBlock (line 194) | pub struct LastOfBlock { type TextBlock (line 245) | pub struct TextBlock { type FunctionBlock (line 298) | pub struct FunctionBlock { type PdlUsage (line 305) | pub struct PdlUsage { type ModelBlock (line 321) | pub struct ModelBlock { type ListOrString (line 345) | pub enum ListOrString { type IterationType (line 351) | pub enum IterationType { type JoinAs (line 363) | pub struct JoinAs { type JoinAsWith (line 368) | pub struct JoinAsWith { type JoinType (line 376) | pub enum JoinType { type RepeatBlock (line 393) | pub struct RepeatBlock { type MessageBlock (line 409) | pub struct MessageBlock { type ObjectBlock (line 434) | pub struct ObjectBlock { type DataBlock (line 462) | pub struct DataBlock { type PythonCodeBlock (line 485) | pub struct PythonCodeBlock { type StringOrNull (line 495) | pub enum StringOrNull { type ReadBlock (line 515) | pub struct ReadBlock { type StringOrBoolean (line 531) | pub enum StringOrBoolean { type Expr (line 537) | pub struct Expr { type EvalsTo (line 547) | pub enum EvalsTo { method default (line 554) | fn default() -> Self { function from (line 560) | fn from(s: &str) -> Self { function from (line 565) | fn from(s: String) -> Self { type IfBlock (line 583) | pub struct IfBlock { type ArrayBlock (line 604) | pub struct ArrayBlock { type IncludeBlock (line 612) | pub struct IncludeBlock { type ImportBlock (line 623) | pub struct ImportBlock { type EmptyBlock (line 634) | pub struct EmptyBlock { type PdlBlock (line 641) | pub enum PdlBlock { method from (line 684) | fn from(b: bool) -> Self { method from (line 690) | fn from(s: &str) -> Self { method from (line 696) | fn from(s: String) -> Self { type Block (line 654) | pub struct Block { type Body (line 666) | pub enum Body { function from (line 702) | fn from(s: &str) -> Self { type Scope (line 707) | pub type Scope = HashMap; type Closure (line 710) | pub struct Closure { type PdlResult (line 717) | pub enum PdlResult { method fmt (line 727) | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { method from (line 733) | fn from(s: &str) -> Self { method from (line 738) | fn from(s: String) -> Self { method from (line 743) | fn from(b: &bool) -> Self { method from (line 748) | fn from(n: Number) -> Self { method eq (line 753) | fn eq(&self, other: &Self) -> bool { FILE: pdl-live-react/src-tauri/src/pdl/extract.rs function extract_models (line 6) | pub fn extract_models(program: &PdlBlock) -> Vec { function extract_values (line 11) | pub fn extract_values(program: &PdlBlock, field: &str) -> Vec { function extract_values_iter (line 23) | fn extract_values_iter(program: &PdlBlock, field: &str, values: &mut Vec... FILE: pdl-live-react/src-tauri/src/pdl/interpreter.rs type Messages (line 34) | type Messages = Vec; type ThreadSafeError (line 35) | type ThreadSafeError = dyn Error + Send + Sync; type PdlError (line 36) | type PdlError = Box; type Interpretation (line 37) | type Interpretation = Result<(PdlResult, Messages, PdlBlock), PdlError>; type BodyInterpretation (line 38) | type BodyInterpretation = Result<(PdlResult, Messages, Body), PdlError>; type InterpretationSync (line 39) | type InterpretationSync = Result<(PdlResult, Messages, PdlBlock), Box { method default (line 48) | fn default() -> Self { type State (line 58) | struct State { method new (line 68) | fn new(initial_scope: Scope) -> Self { method id (line 79) | fn id(&self) -> String { method with_cwd (line 83) | fn with_cwd(&self, cwd: PathBuf) -> Self { method with_emit (line 89) | fn with_emit(&self, emit: bool) -> Self { method with_iter (line 95) | fn with_iter(&self, iter: usize) -> Self { method incr_iter (line 101) | fn incr_iter(&self, iter: usize) -> Self { method extend_scope (line 108) | fn extend_scope(&self, scopes: Vec) -> Self { type Interpreter (line 115) | struct Interpreter<'a> { function new (line 122) | fn new(options: RunOptions<'a>) -> Self { function _run_with_state (line 140) | async fn _run_with_state( function run_advanced (line 199) | async fn run_advanced(&mut self, block: &Block, state: &mut State) -> In... function run_quiet (line 287) | async fn run_quiet(&mut self, program: &PdlBlock, state: &mut State) -> ... function run (line 293) | async fn run(&mut self, program: &PdlBlock, state: &mut State) -> Interp... function eval (line 299) | fn eval(&self, expr: &String, state: &State) -> Result Result Result Closure { function run_string (line 436) | async fn run_string(&self, msg: &String, state: &State) -> Interpretation { function path_to (line 461) | fn path_to(&self, file_path: &String, state: &State) -> PathBuf { function def (line 471) | fn def( function run_read (line 509) | async fn run_read( function run_call (line 559) | async fn run_call( function run_empty (line 594) | async fn run_empty(&mut self, block: &EmptyBlock, state: &mut State) -> ... function run_if (line 610) | async fn run_if( function run_include (line 640) | async fn run_include( function run_import (line 667) | async fn run_import( function to_ollama_model_options (line 693) | fn to_ollama_model_options( function run_python_code (line 754) | async fn run_python_code( function tool_call_prompt (line 845) | fn tool_call_prompt( function run_ollama_model (line 880) | async fn run_ollama_model( function run_openai_model (line 990) | async fn run_openai_model( function run_model (line 1037) | async fn run_model( function run_data (line 1137) | async fn run_data( function run_object (line 1187) | async fn run_object( function run_repeat (line 1217) | async fn run_repeat( function to_ollama_role (line 1265) | fn to_ollama_role(&self, role: &Role) -> MessageRole { function from_ollama_role (line 1274) | fn from_ollama_role(&self, role: &MessageRole) -> Role { function parse_result (line 1283) | fn parse_result(&self, parser: &PdlParser, result: &String) -> Result( function run_sync (line 1511) | pub fn run_sync<'a>( function parse_file (line 1522) | pub fn parse_file(path: &PathBuf) -> Result { function run_file (line 1526) | pub async fn run_file<'a>( function run_file_sync (line 1539) | pub fn run_file_sync<'a>( function run_string (line 1548) | pub async fn run_string<'a>( function run_json (line 1557) | pub async fn run_json<'a>( function run_json_sync (line 1566) | pub fn run_json_sync<'a>( function pretty_print (line 1575) | pub fn pretty_print(messages: &Vec) -> String { function resultify (line 1601) | fn resultify(value: &Value) -> PdlResult { function resultify_as_litellm (line 1617) | fn resultify_as_litellm(value: &Value) -> PdlResult { function load_scope (line 1625) | pub fn load_scope( function get_paths (line 1662) | fn get_paths(env_variable_name: &str) -> impl Iterator + ... function split_paths (line 1679) | pub(crate) fn split_paths + ?Sized>( constant __version__ (line 1695) | const __version__: u32 = 1; type BaseModel (line 1700) | struct BaseModel {} type Field (line 1708) | struct Field {} type ValidationError (line 1716) | struct ValidationError {} type InstanceOf (line 1724) | struct InstanceOf {} type ConfigDict (line 1732) | struct ConfigDict {} function SettingsConfigDict (line 1745) | fn SettingsConfigDict(_rest: FuncArgs, _vm: &VirtualMachine) -> PyResult... type BaseSettings (line 1752) | struct BaseSettings {} FILE: pdl-live-react/src-tauri/src/pdl/interpreter_tests.rs constant DEFAULT_MODEL (line 13) | const DEFAULT_MODEL: &'static str = "ollama/granite4:micro"; function streaming (line 15) | fn streaming<'a>() -> RunOptions<'a> { function initial_scope (line 27) | fn initial_scope() -> Scope { function string (line 32) | fn string() -> Result<(), Box> { function string_via_initial_scope (line 41) | fn string_via_initial_scope() -> Result<(), Box> { function single_model_via_input_string (line 61) | fn single_model_via_input_string() -> Result<(), Box> { function single_model_via_text_chain_expr (line 83) | fn single_model_via_text_chain_expr() -> Result<(), Box> { function single_model_via_text_chain (line 103) | fn single_model_via_text_chain() -> Result<(), Box> { function single_model_via_input_array (line 123) | fn single_model_via_input_array() -> Result<(), Box> { function two_models_via_text_chain (line 150) | fn two_models_via_text_chain() -> Result<(), Box> { function text_parser_json (line 190) | fn text_parser_json() -> Result<(), Box> { function text_parser_jsonl (line 209) | fn text_parser_jsonl() -> Result<(), Box> { function last_of_parser_json (line 232) | fn last_of_parser_json() -> Result<(), Box> { function text_call_function_no_args (line 249) | fn text_call_function_no_args() -> Result<(), Box> { function text_call_function_with_args (line 275) | fn text_call_function_with_args() -> Result<(), Box> { function text_python_code_result_int (line 303) | fn text_python_code_result_int() -> Result<(), Box> { function text_python_code_result_str (line 317) | fn text_python_code_result_str() -> Result<(), Box> { function text_python_code_result_dict (line 331) | fn text_python_code_result_dict() -> Result<(), Box> { function text_python_two_code_result_dict (line 345) | fn text_python_two_code_result_dict() -> Result<(), Box> { function text_python_code_import_venv (line 368) | fn text_python_code_import_venv() -> Result<(), Box> { function text_read_file_text (line 384) | fn text_read_file_text() -> Result<(), Box> { function text_read_file_struct (line 398) | fn text_read_file_struct() -> Result<(), Box> { function text_repeat_numbers_1d (line 421) | fn text_repeat_numbers_1d() -> Result<(), Box> { function text_repeat_numbers_2d (line 445) | fn text_repeat_numbers_2d() -> Result<(), Box> { function text_repeat_mix_2d (line 470) | fn text_repeat_mix_2d() -> Result<(), Box> { function text_if_true (line 495) | fn text_if_true() -> Result<(), Box> { function text_if_false (line 509) | fn text_if_false() -> Result<(), Box> { function text_if_with_defs (line 524) | fn text_if_with_defs() -> Result<(), Box> { function text_object_via_defs_1 (line 542) | fn text_object_via_defs_1() -> Result<(), Box> { function text_object_via_defs_2 (line 564) | fn text_object_via_defs_2() -> Result<(), Box> { function include (line 590) | fn include() -> Result<(), Box> { function data_1 (line 603) | fn data_1() -> Result<(), Box> { function data_2 (line 616) | fn data_2() -> Result<(), Box> { function data_3 (line 629) | fn data_3() -> Result<(), Box> { function data_4 (line 642) | fn data_4() -> Result<(), Box> { function import_1 (line 655) | fn import_1() -> Result<(), Box> { function scoping_1 (line 668) | fn scoping_1() -> Result<(), Box> { function regex_findall (line 683) | fn regex_findall() -> Result<(), Box> { function regex_plain_1 (line 704) | fn regex_plain_1() -> Result<(), Box> { function regex_plain_2 (line 725) | fn regex_plain_2() -> Result<(), Box> { function bee_1 (line 744) | fn bee_1() -> Result<(), Box> { FILE: pdl-live-react/src-tauri/src/pdl/pip.rs function pip_install_if_needed (line 10) | pub async fn pip_install_if_needed( FILE: pdl-live-react/src-tauri/src/pdl/pull.rs function pull_if_needed (line 20) | pub async fn pull_if_needed(program: &PdlBlock) -> Result<(), Error> { function ollama_exists (line 36) | fn ollama_exists(model: &str) -> bool { function ollama_pull_if_needed (line 48) | fn ollama_pull_if_needed(model: &str) -> Result<(), Error> { FILE: pdl-live-react/src-tauri/src/pdl/requirements.rs constant BEEAI_FRAMEWORK (line 1) | pub const BEEAI_FRAMEWORK: &str = "-e git+https://github.com/starpit/bee... FILE: pdl-live-react/src-tauri/src/util/shasum.rs function sha256sum_str (line 14) | pub fn sha256sum_str(s: &str) -> String { FILE: pdl-live-react/src-tauri/tests/data/bee_1.py function main (line 9) | async def main() -> None: FILE: pdl-live-react/src/App.tsx function App (line 6) | function App() { FILE: pdl-live-react/src/demos/demos.ts type Demo (line 11) | type Demo = { FILE: pdl-live-react/src/helpers.ts type ExpressionT (line 21) | type ExpressionT = T | string | LocalizedExpression type MakeNonNullable (line 23) | type MakeNonNullable = { type CodeBlock (line 27) | type CodeBlock = type ModelBlock (line 34) | type ModelBlock = type ModelBlockWithUsage (line 39) | type ModelBlockWithUsage = ModelBlock & { type NonScalarPdlBlock (line 43) | type NonScalarPdlBlock = Exclude< type PdlBlockWithResult (line 47) | type PdlBlockWithResult = NonScalarPdlBlock & { type WithTiming (line 51) | type WithTiming = Required< type PdlBlockWithTiming (line 55) | type PdlBlockWithTiming = NonScalarPdlBlock & { pdl__timing: WithTiming } type PdlBlockWithContext (line 57) | type PdlBlockWithContext = Omit & { function hasResult (line 62) | function hasResult(block: unknown): block is PdlBlockWithResult { function isPdlBlock (line 71) | function isPdlBlock( function isNonScalarPdlBlock (line 84) | function isNonScalarPdlBlock( function hasParser (line 91) | function hasParser( function isMarkdownish (line 104) | function isMarkdownish(s: string): boolean { function isTextBlock (line 119) | function isTextBlock(data: PdlBlock): data is TextBlock { type TextBlockWithContent (line 124) | type TextBlockWithContent = TextBlock & { function isTextBlockWithContent (line 127) | function isTextBlockWithContent( function isTextBlockWithArrayContent (line 134) | function isTextBlockWithArrayContent( function isLLMBlock (line 141) | function isLLMBlock(data: unknown | PdlBlock): data is ModelBlock { function hasScalarResult (line 150) | function hasScalarResult( function firstLineOf (line 166) | function firstLineOf(s: string) { function nonNullable (line 175) | function nonNullable(value: T): value is NonNullable { function hasTimingInformation (line 180) | function hasTimingInformation( function hasModelUsage (line 193) | function hasModelUsage( function completionRate (line 206) | function completionRate( function ptcRatio (line 215) | function ptcRatio(block: ModelBlockWithUsage) { function hasContextInformation (line 220) | function hasContextInformation( function capitalizeAndUnSnakeCase (line 230) | function capitalizeAndUnSnakeCase(s: string) { type MessageBearing (line 241) | type MessageBearing = Omit & { function hasMessage (line 244) | function hasMessage(block: PdlBlock): block is MessageBearing { function hasInput (line 248) | function hasInput(block: PdlBlock): block is function tryJson (line 262) | function tryJson(s: unknown) { function tryJsonPrettyPrint (line 273) | function tryJsonPrettyPrint(s: string) { function extractStructuredModelResponse (line 282) | function extractStructuredModelResponse({ function isArgs (line 323) | function isArgs(block: ArgsBlock | CodeBlock): block is ArgsBlock { function extractCode (line 327) | function extractCode({ code }: CodeBlock): string { function isExpr (line 339) | function isExpr(e: unknown): e is LocalizedExpression { function getValue (line 347) | function getValue(expr: ExpressionT) { function extractModel (line 359) | function extractModel(block: ModelBlock): string { FILE: pdl-live-react/src/page/About.tsx function Welcome (line 4) | function Welcome() { FILE: pdl-live-react/src/page/ClearMyTraces.tsx function ClearMyTraces (line 13) | function ClearMyTraces() { FILE: pdl-live-react/src/page/DarkModeContext.ts function getDarkModeUserSetting (line 3) | function getDarkModeUserSetting(): boolean { function setDarkModeUserSetting (line 7) | function setDarkModeUserSetting(darkMode: boolean) { function setDarkModeForSession (line 11) | function setDarkModeForSession(darkMode: boolean) { FILE: pdl-live-react/src/page/DarkModeToggle.tsx function DarkModeToggle (line 14) | function DarkModeToggle() { FILE: pdl-live-react/src/page/Demo.tsx type Props (line 7) | type Props = { function DemosDropdown (line 13) | function DemosDropdown({ current }: { current: string }) { function Demo (line 28) | function Demo({ name, value }: Props) { FILE: pdl-live-react/src/page/DemoNavItems.tsx function DemoNavItems (line 7) | function DemoNavItems({ FILE: pdl-live-react/src/page/Demos.tsx function DemoTiles (line 14) | function DemoTiles() { function Demos (line 61) | function Demos() { FILE: pdl-live-react/src/page/ErrorBoundary.tsx type ErrorResponse (line 12) | type ErrorResponse = { function isErrorResponse (line 16) | function isErrorResponse(err: unknown): err is ErrorResponse { function message (line 21) | function message(error: unknown) { type Props (line 29) | type Props = import("react").PropsWithChildren method super (line 34) | super(props) FILE: pdl-live-react/src/page/Local.tsx type Props (line 7) | type Props = { function Local (line 11) | function Local() { FILE: pdl-live-react/src/page/Masthead.tsx function Toggle (line 23) | function Toggle() { function Brand (line 57) | function Brand() { function Main (line 73) | function Main() { function Content (line 82) | function Content() { function PDLMasthead (line 86) | function PDLMasthead() { FILE: pdl-live-react/src/page/MyTrace.tsx type Props (line 7) | type Props = { function MyTracesDropdown (line 13) | function MyTracesDropdown({ current }: { current: string }) { function MyTrace (line 28) | function MyTrace({ name, value }: Props) { FILE: pdl-live-react/src/page/MyTraces.ts type MyTrace (line 5) | type MyTrace = { function clear (line 13) | function clear() { function getMyTraces (line 17) | function getMyTraces(): MyTrace[] { function addMyTrace (line 32) | function addMyTrace(filename: string, value: string): MyTrace { FILE: pdl-live-react/src/page/MyTracesNavItems.tsx function MyTracesNavItems (line 12) | function MyTracesNavItems({ FILE: pdl-live-react/src/page/MyTracesPage.tsx function MyTiles (line 14) | function MyTiles() { function MyTraces (line 64) | function MyTraces() { FILE: pdl-live-react/src/page/Page.tsx function PDLPage (line 25) | function PDLPage(props: Props) { FILE: pdl-live-react/src/page/PageBreadcrumbDropdown.tsx function PageBreadcrumbDropdown (line 9) | function PageBreadcrumbDropdown({ FILE: pdl-live-react/src/page/PageBreadcrumbDropdownItem.tsx function PageBreadcrumbDropdownItem (line 5) | function PageBreadcrumbDropdownItem({ FILE: pdl-live-react/src/page/PageBreadcrumbs.tsx type PageBreadcrumbProps (line 7) | type PageBreadcrumbProps = { function PageBreadcrumbs (line 15) | function PageBreadcrumbs({ FILE: pdl-live-react/src/page/Run.tsx function Run (line 28) | function Run() { FILE: pdl-live-react/src/page/Sidebar.tsx function Sidebar (line 14) | function Sidebar() { FILE: pdl-live-react/src/page/Uploader.tsx type Props (line 25) | type Props = { function Uploader (line 32) | function Uploader({ FILE: pdl-live-react/src/page/welcome/Intro.tsx function Intro (line 3) | function Intro() { FILE: pdl-live-react/src/page/welcome/Links.tsx function Links (line 6) | function Links() { FILE: pdl-live-react/src/page/welcome/Tile.tsx type Props (line 12) | type Props = PropsWithChildren<{ function Tile (line 22) | function Tile({ FILE: pdl-live-react/src/page/welcome/Tiles.tsx type Props (line 7) | type Props = { function Tiles (line 13) | function Tiles(props: Props) { FILE: pdl-live-react/src/page/welcome/Toolbar.tsx function WelcomeToolbar (line 7) | function WelcomeToolbar() { FILE: pdl-live-react/src/page/welcome/Welcome.tsx type Props (line 14) | type Props = { function Welcome (line 20) | function Welcome(props: Props) { FILE: pdl-live-react/src/page/welcome/tiles/Demos.tsx function Demos (line 9) | function Demos() { FILE: pdl-live-react/src/page/welcome/tiles/MyTraces.tsx function MyTraces (line 12) | function MyTraces() { FILE: pdl-live-react/src/pdl_ast.d.ts type PDLSchemas (line 8) | type PDLSchemas = Program | PdlBlock type Program (line 12) | type Program = type ExpressionBlock (line 44) | type ExpressionBlock = boolean | number | string | null type Enum (line 45) | type Enum = unknown[] type PdlTypeType (line 46) | type PdlTypeType = type Type (line 71) | type Type = string | string[] type BlockType (line 72) | type BlockType = type ContributeElement (line 104) | type ContributeElement = type ContributeTarget (line 113) | type ContributeTarget = "result" | "context" | "stdout" | "stderr" type Contribute (line 118) | type Contribute = ContributeElement[] type ParserType (line 119) | type ParserType = type Regex (line 123) | type Regex = string type Mode (line 124) | type Mode = "search" | "match" | "fullmatch" | "split" | "findall" type Feedback (line 125) | type Feedback = LocalizedExpression | FunctionBlock | string | null type Path (line 126) | type Path = string[] type File (line 127) | type File = string type ExpectationsType (line 132) | type ExpectationsType = ExpectationType[] type ModelInput (line 133) | type ModelInput = { type PdlIsLeaf (line 136) | type PdlIsLeaf = true type Kind (line 137) | type Kind = "call" type Call (line 142) | type Call = LocalizedExpression | FunctionBlock | string type Contribute1 (line 147) | type Contribute1 = ContributeElement[] type ExpectationsType1 (line 152) | type ExpectationsType1 = ExpectationType[] type PdlIsLeaf1 (line 153) | type PdlIsLeaf1 = true type Kind1 (line 154) | type Kind1 = "model" type Contribute2 (line 159) | type Contribute2 = ContributeElement[] type ExpectationsType2 (line 164) | type ExpectationsType2 = ExpectationType[] type PdlIsLeaf2 (line 165) | type PdlIsLeaf2 = true type Kind2 (line 166) | type Kind2 = "model" type Contribute3 (line 171) | type Contribute3 = ContributeElement[] type ExpectationsType3 (line 176) | type ExpectationsType3 = ExpectationType[] type PdlIsLeaf3 (line 177) | type PdlIsLeaf3 = true type Kind3 (line 178) | type Kind3 = "model" type Contribute4 (line 183) | type Contribute4 = ContributeElement[] type ExpectationsType4 (line 188) | type ExpectationsType4 = ExpectationType[] type PdlIsLeaf4 (line 189) | type PdlIsLeaf4 = true type Kind4 (line 190) | type Kind4 = "code" type Contribute5 (line 195) | type Contribute5 = ContributeElement[] type ExpectationsType5 (line 200) | type ExpectationsType5 = ExpectationType[] type PdlIsLeaf5 (line 201) | type PdlIsLeaf5 = true type Kind5 (line 202) | type Kind5 = "code" type Contribute6 (line 207) | type Contribute6 = ContributeElement[] type ExpectationsType6 (line 212) | type ExpectationsType6 = ExpectationType[] type PdlIsLeaf6 (line 213) | type PdlIsLeaf6 = true type Kind6 (line 214) | type Kind6 = "code" type Contribute7 (line 219) | type Contribute7 = ContributeElement[] type ExpectationsType7 (line 224) | type ExpectationsType7 = ExpectationType[] type PdlIsLeaf7 (line 225) | type PdlIsLeaf7 = true type Kind7 (line 226) | type Kind7 = "code" type Contribute8 (line 231) | type Contribute8 = ContributeElement[] type ExpectationsType8 (line 236) | type ExpectationsType8 = ExpectationType[] type PdlIsLeaf8 (line 237) | type PdlIsLeaf8 = true type Kind8 (line 238) | type Kind8 = "code" type Contribute9 (line 243) | type Contribute9 = ContributeElement[] type ExpectationsType9 (line 248) | type ExpectationsType9 = ExpectationType[] type PdlIsLeaf9 (line 249) | type PdlIsLeaf9 = true type Kind9 (line 250) | type Kind9 = "code" type Lang (line 251) | type Lang = "command" type ExpressionStr (line 252) | type ExpressionStr = LocalizedExpression | string type Args1 (line 257) | type Args1 = ExpressionStr[] type Contribute10 (line 262) | type Contribute10 = ContributeElement[] type ExpectationsType10 (line 267) | type ExpectationsType10 = ExpectationType[] type PdlIsLeaf10 (line 268) | type PdlIsLeaf10 = true type Kind10 (line 269) | type Kind10 = "get" type Get (line 273) | type Get = string type Contribute11 (line 278) | type Contribute11 = ContributeElement[] type ExpectationsType11 (line 283) | type ExpectationsType11 = ExpectationType[] type PdlIsLeaf11 (line 284) | type PdlIsLeaf11 = true type Kind11 (line 285) | type Kind11 = "data" type Raw (line 289) | type Raw = boolean type Contribute12 (line 294) | type Contribute12 = ContributeElement[] type ExpectationsType12 (line 299) | type ExpectationsType12 = ExpectationType[] type PdlIsLeaf12 (line 300) | type PdlIsLeaf12 = false type IndependentEnum (line 307) | type IndependentEnum = "independent" | "dependent" type Kind12 (line 308) | type Kind12 = "if" type Contribute13 (line 313) | type Contribute13 = ContributeElement[] type ExpectationsType13 (line 318) | type ExpectationsType13 = ExpectationType[] type PdlIsLeaf13 (line 319) | type PdlIsLeaf13 = false type IndependentEnum1 (line 326) | type IndependentEnum1 = "independent" | "dependent" type Kind13 (line 327) | type Kind13 = "match" type PatternType (line 328) | type PatternType = type Anyof (line 337) | type Anyof = PatternType[] type Array (line 338) | type Array = PatternType[] type Any (line 339) | type Any = null type ExpressionBool (line 340) | type ExpressionBool = LocalizedExpression | boolean | string type With (line 345) | type With = MatchCase[] type Contribute14 (line 350) | type Contribute14 = ContributeElement[] type ExpectationsType14 (line 355) | type ExpectationsType14 = ExpectationType[] type PdlIsLeaf14 (line 356) | type PdlIsLeaf14 = false type IndependentEnum2 (line 363) | type IndependentEnum2 = "independent" | "dependent" type Kind14 (line 364) | type Kind14 = "repeat" type For (line 369) | type For = { type Contribute15 (line 376) | type Contribute15 = ContributeElement[] type ExpectationsType15 (line 381) | type ExpectationsType15 = ExpectationType[] type PdlIsLeaf15 (line 382) | type PdlIsLeaf15 = false type IndependentEnum3 (line 389) | type IndependentEnum3 = "independent" | "dependent" type Kind15 (line 390) | type Kind15 = "map" type For1 (line 395) | type For1 = { type Contribute16 (line 402) | type Contribute16 = ContributeElement[] type ExpectationsType16 (line 407) | type ExpectationsType16 = ExpectationType[] type PdlIsLeaf16 (line 408) | type PdlIsLeaf16 = false type IndependentEnum4 (line 415) | type IndependentEnum4 = "independent" | "dependent" type Kind16 (line 416) | type Kind16 = "sequence" type Sequence (line 420) | type Sequence = BlockType[] type As (line 425) | type As = "text" type With1 (line 430) | type With1 = string type As1 (line 435) | type As1 = "array" type As2 (line 440) | type As2 = "object" type As3 (line 445) | type As3 = "lastOf" type As4 (line 446) | type As4 = "reduce" type Reduce (line 450) | type Reduce = LocalizedExpression | string type Contribute17 (line 455) | type Contribute17 = ContributeElement[] type ExpectationsType17 (line 460) | type ExpectationsType17 = ExpectationType[] type PdlIsLeaf17 (line 461) | type PdlIsLeaf17 = false type IndependentEnum5 (line 468) | type IndependentEnum5 = "independent" | "dependent" type Kind17 (line 469) | type Kind17 = "text" type Text (line 474) | type Text = BlockType | BlockType[] type Contribute18 (line 479) | type Contribute18 = ContributeElement[] type ExpectationsType18 (line 484) | type ExpectationsType18 = ExpectationType[] type PdlIsLeaf18 (line 485) | type PdlIsLeaf18 = false type IndependentEnum6 (line 492) | type IndependentEnum6 = "independent" | "dependent" type Kind18 (line 493) | type Kind18 = "lastOf" type Lastof (line 497) | type Lastof = BlockType[] type Contribute19 (line 502) | type Contribute19 = ContributeElement[] type ExpectationsType19 (line 507) | type ExpectationsType19 = ExpectationType[] type PdlIsLeaf19 (line 508) | type PdlIsLeaf19 = false type IndependentEnum7 (line 515) | type IndependentEnum7 = "independent" | "dependent" type Kind19 (line 516) | type Kind19 = "array" type Array1 (line 520) | type Array1 = BlockType[] type Contribute20 (line 525) | type Contribute20 = ContributeElement[] type ExpectationsType20 (line 530) | type ExpectationsType20 = ExpectationType[] type PdlIsLeaf20 (line 531) | type PdlIsLeaf20 = false type IndependentEnum8 (line 538) | type IndependentEnum8 = "independent" | "dependent" type Kind20 (line 539) | type Kind20 = "object" type Object2 (line 543) | type Object2 = type Contribute21 (line 552) | type Contribute21 = ContributeElement[] type ExpectationsType21 (line 557) | type ExpectationsType21 = ExpectationType[] type PdlIsLeaf21 (line 558) | type PdlIsLeaf21 = true type Kind21 (line 559) | type Kind21 = "message" type Contribute22 (line 564) | type Contribute22 = ContributeElement[] type ExpectationsType22 (line 569) | type ExpectationsType22 = ExpectationType[] type PdlIsLeaf22 (line 570) | type PdlIsLeaf22 = true type Kind22 (line 571) | type Kind22 = "read" type Multiline (line 576) | type Multiline = boolean type Contribute23 (line 581) | type Contribute23 = ContributeElement[] type ExpectationsType23 (line 586) | type ExpectationsType23 = ExpectationType[] type PdlIsLeaf23 (line 587) | type PdlIsLeaf23 = false type IndependentEnum9 (line 594) | type IndependentEnum9 = "independent" | "dependent" type Kind23 (line 595) | type Kind23 = "include" type Include (line 600) | type Include = string type Contribute24 (line 605) | type Contribute24 = ContributeElement[] type ExpectationsType24 (line 610) | type ExpectationsType24 = ExpectationType[] type PdlIsLeaf24 (line 611) | type PdlIsLeaf24 = true type Kind24 (line 612) | type Kind24 = "import" type Import (line 617) | type Import = string type Contribute25 (line 622) | type Contribute25 = ContributeElement[] type ExpectationsType25 (line 627) | type ExpectationsType25 = ExpectationType[] type PdlIsLeaf25 (line 628) | type PdlIsLeaf25 = true type Kind25 (line 629) | type Kind25 = "factor" type Factor (line 634) | type Factor = LocalizedExpression | number | string type Resample (line 639) | type Resample = boolean type Contribute26 (line 644) | type Contribute26 = ContributeElement[] type ExpectationsType26 (line 649) | type ExpectationsType26 = ExpectationType[] type PdlIsLeaf26 (line 650) | type PdlIsLeaf26 = true type Kind26 (line 651) | type Kind26 = "aggregator" type Aggregator (line 655) | type Aggregator = "context" | FileAggregatorConfig type Description (line 660) | type Description = string | null type File1 (line 664) | type File1 = LocalizedExpression | string type Mode1 (line 668) | type Mode1 = LocalizedExpression | string type Encoding (line 672) | type Encoding = LocalizedExpression | string | null type Prefix (line 676) | type Prefix = LocalizedExpression | string type Suffix (line 680) | type Suffix = LocalizedExpression | string type Flush (line 684) | type Flush = LocalizedExpression | boolean | string type Contribute27 (line 689) | type Contribute27 = ContributeElement[] type ExpectationsType27 (line 694) | type ExpectationsType27 = ExpectationType[] type PdlIsLeaf27 (line 695) | type PdlIsLeaf27 = true type Kind27 (line 696) | type Kind27 = "error" type Msg (line 701) | type Msg = string type Contribute28 (line 706) | type Contribute28 = ContributeElement[] type ExpectationsType28 (line 711) | type ExpectationsType28 = ExpectationType[] type PdlIsLeaf28 (line 712) | type PdlIsLeaf28 = true type Kind28 (line 713) | type Kind28 = "empty" type ExpressionList (line 714) | type ExpressionList = LocalizedExpression | unknown[] | string type ExpressionInt (line 715) | type ExpressionInt = LocalizedExpression | number | string type PdlTrace (line 716) | type PdlTrace = BlockType[] | null type PdlTrace1 (line 717) | type PdlTrace1 = BlockType[] | null type ExpressionDictStr (line 718) | type ExpressionDictStr = type Lang1 (line 728) | type Lang1 = "command" type Lang2 (line 733) | type Lang2 = "pdl" type Lang3 (line 738) | type Lang3 = "jinja" type Lang4 (line 743) | type Lang4 = "ipython" type Lang5 (line 748) | type Lang5 = "python" type ModelCalls (line 749) | type ModelCalls = number type CompletionTokens (line 750) | type CompletionTokens = number type PromptTokens (line 751) | type PromptTokens = number type Platform (line 756) | type Platform = "openai" type Parameters (line 761) | type Parameters = type ApiKey (line 769) | type ApiKey = string | null type BaseUrl (line 770) | type BaseUrl = string | null type Organization (line 771) | type Organization = string | null type Platform1 (line 776) | type Platform1 = "granite-io" type Parameters1 (line 781) | type Parameters1 = type Platform2 (line 792) | type Platform2 = "litellm" type Parameters2 (line 797) | type Parameters2 = type Timeout (line 805) | type Timeout = number | string | null type Temperature (line 806) | type Temperature = number | string | null type TopP (line 807) | type TopP = number | string | null type N (line 808) | type N = number | string | null type Stop (line 809) | type Stop = string | string[] | null type MaxTokens (line 810) | type MaxTokens = number | string | null type PresencePenalty (line 811) | type PresencePenalty = number | string | null type FrequencyPenalty (line 812) | type FrequencyPenalty = number | string | null type LogitBias (line 813) | type LogitBias = type User (line 819) | type User = string | null type ResponseFormat (line 820) | type ResponseFormat = type Seed (line 826) | type Seed = number | string | null type Tools (line 827) | type Tools = unknown[] | string | null type ToolChoice (line 828) | type ToolChoice = type Logprobs (line 834) | type Logprobs = boolean | string | null type TopLogprobs (line 835) | type TopLogprobs = number | string | null type ParallelToolCalls (line 836) | type ParallelToolCalls = boolean | string | null type ExtraHeaders (line 837) | type ExtraHeaders = type Functions (line 843) | type Functions = unknown[] | string | null type FunctionCall (line 844) | type FunctionCall = string | null type BaseUrl1 (line 845) | type BaseUrl1 = string | null type ApiVersion (line 846) | type ApiVersion = string | null type ApiKey1 (line 847) | type ApiKey1 = string | null type ModelList (line 848) | type ModelList = unknown[] | string | null type MockResponse (line 849) | type MockResponse = string | null type CustomLlmProvider (line 850) | type CustomLlmProvider = string | null type MaxRetries (line 851) | type MaxRetries = number | string | null type Contribute29 (line 856) | type Contribute29 = ContributeElement[] type ExpectationsType29 (line 861) | type ExpectationsType29 = ExpectationType[] type PdlIsLeaf29 (line 862) | type PdlIsLeaf29 = true type Kind29 (line 863) | type Kind29 = "function" type Function (line 868) | type Function = { type Signature (line 875) | type Signature = string | null type PdlBlock (line 882) | type PdlBlock = type FunctionBlock (line 918) | interface FunctionBlock { type EnumPdlType (line 1044) | interface EnumPdlType { type OptionalPdlType (line 1051) | interface OptionalPdlType { type JsonSchemaTypePdlType (line 1057) | interface JsonSchemaTypePdlType { type ObjectPdlType (line 1064) | interface ObjectPdlType { type Object (line 1067) | interface Object { type Defs (line 1074) | interface Defs { type CallBlock (line 1080) | interface CallBlock { type Defs1 (line 1172) | interface Defs1 { type ContributeValue (line 1178) | interface ContributeValue { type PdlParser (line 1184) | interface PdlParser { type RegexParser (line 1216) | interface RegexParser { type ExpectationType (line 1249) | interface ExpectationType { type LocalizedExpression (line 1253) | interface LocalizedExpression { type PdlExpr (line 1258) | interface PdlExpr { type PdlLocationType (line 1264) | interface PdlLocationType { type Table (line 1269) | interface Table { type PdlTiming (line 1275) | interface PdlTiming { type LitellmModelBlock (line 1291) | interface LitellmModelBlock { type Defs2 (line 1439) | interface Defs2 { type GraniteioModelBlock (line 1445) | interface GraniteioModelBlock { type Defs3 (line 1585) | interface Defs3 { type OpenaiModelBlock (line 1600) | interface OpenaiModelBlock { type Defs4 (line 1748) | interface Defs4 { type PythonCodeBlock (line 1763) | interface PythonCodeBlock { type Defs5 (line 1894) | interface Defs5 { type IPythonCodeBlock (line 1908) | interface IPythonCodeBlock { type Defs6 (line 2039) | interface Defs6 { type JinjaCodeBlock (line 2054) | interface JinjaCodeBlock { type Defs7 (line 2190) | interface Defs7 { type PdlCodeBlock (line 2208) | interface PdlCodeBlock { type Defs8 (line 2339) | interface Defs8 { type CommandCodeBlock (line 2352) | interface CommandCodeBlock { type Defs9 (line 2483) | interface Defs9 { type ArgsBlock (line 2497) | interface ArgsBlock { type Defs10 (line 2588) | interface Defs10 { type GetBlock (line 2596) | interface GetBlock { type Defs11 (line 2686) | interface Defs11 { type DataBlock (line 2713) | interface DataBlock { type Defs12 (line 2804) | interface Defs12 { type IfBlock (line 2820) | interface IfBlock { type Defs13 (line 2956) | interface Defs13 { type MatchBlock (line 2979) | interface MatchBlock { type Defs14 (line 3071) | interface Defs14 { type MatchCase (line 3077) | interface MatchCase { type OrPattern (line 3088) | interface OrPattern { type ArrayPattern (line 3095) | interface ArrayPattern { type ObjectPattern (line 3102) | interface ObjectPattern { type Object1 (line 3106) | interface Object1 { type AnyPattern (line 3112) | interface AnyPattern { type RepeatBlock (line 3142) | interface RepeatBlock { type Defs15 (line 3295) | interface Defs15 { type MapBlock (line 3322) | interface MapBlock { type Defs16 (line 3470) | interface Defs16 { type SequenceBlock (line 3476) | interface SequenceBlock { type Defs17 (line 3572) | interface Defs17 { type JoinText (line 3578) | interface JoinText { type JoinArray (line 3585) | interface JoinArray { type JoinObject (line 3591) | interface JoinObject { type JoinLastOf (line 3597) | interface JoinLastOf { type JoinReduce (line 3603) | interface JoinReduce { type TextBlock (line 3610) | interface TextBlock { type Defs18 (line 3701) | interface Defs18 { type LastOfBlock (line 3707) | interface LastOfBlock { type Defs19 (line 3798) | interface Defs19 { type ArrayBlock (line 3804) | interface ArrayBlock { type Defs20 (line 3895) | interface Defs20 { type ObjectBlock (line 3901) | interface ObjectBlock { type Defs21 (line 3992) | interface Defs21 { type MessageBlock (line 3998) | interface MessageBlock { type Defs22 (line 4134) | interface Defs22 { type ReadBlock (line 4152) | interface ReadBlock { type Defs23 (line 4252) | interface Defs23 { type IncludeBlock (line 4258) | interface IncludeBlock { type Defs24 (line 4350) | interface Defs24 { type ImportBlock (line 4356) | interface ImportBlock { type Defs25 (line 4447) | interface Defs25 { type FactorBlock (line 4453) | interface FactorBlock { type Defs26 (line 4545) | interface Defs26 { type AggregatorBlock (line 4551) | interface AggregatorBlock { type Defs27 (line 4641) | interface Defs27 { type FileAggregatorConfig (line 4644) | interface FileAggregatorConfig { type ErrorBlock (line 4656) | interface ErrorBlock { type Defs28 (line 4782) | interface Defs28 { type EmptyBlock (line 4788) | interface EmptyBlock { type Defs29 (line 4877) | interface Defs29 { type PdlUsage (line 4883) | interface PdlUsage { type OpenaiParameters (line 4892) | interface OpenaiParameters { type LitellmParameters (line 4903) | interface LitellmParameters { FILE: pdl-live-react/src/pdl_ast_utils.ts function map_block_children (line 6) | function map_block_children( function iter_block_children (line 242) | function iter_block_children( FILE: pdl-live-react/src/pdl_code_cleanup.ts function block_code_cleanup (line 19) | function block_code_cleanup(block: PdlBlock): PdlBlock { function clean_model_block (line 49) | function clean_model_block( function clean_data_block (line 64) | function clean_data_block(block: DataBlock) { function clean_match_block (line 89) | function clean_match_block(block: MatchBlock) { function remove_block_default_values (line 108) | function remove_block_default_values( function clean_repeat_block (line 125) | function clean_repeat_block(block: RepeatBlock) { function remove_internal_block_fields (line 144) | function remove_internal_block_fields(block: NonScalarPdlBlock) { function expr_code_cleanup (line 158) | function expr_code_cleanup(expr: ExpressionT): ExpressionT & { function RunMenu (line 27) | function RunMenu({ block, run }: Props) { FILE: pdl-live-react/src/view/masonry/Tile.ts type Tile (line 1) | type Tile = { FILE: pdl-live-react/src/view/masonry/Toolbar.tsx type SML (line 13) | type SML = "s" | "m" | "l" | "xl" type Props (line 15) | type Props = import("./ToolbarPaginator").Props & { function MasonryToolbar (line 24) | function MasonryToolbar({ FILE: pdl-live-react/src/view/masonry/ToolbarPaginator.tsx type Props (line 3) | type Props = Pick< function ToolbarPaginator (line 11) | function ToolbarPaginator({ FILE: pdl-live-react/src/view/masonry/ToolbarReplayButton.tsx type Props (line 4) | type Props = { function ToolbarReplayButton (line 9) | function ToolbarReplayButton({ run, isRunning }: Props) { FILE: pdl-live-react/src/view/masonry/ToolbarSMLToggle.tsx function ToolbarAsToggler (line 4) | function ToolbarAsToggler({ FILE: pdl-live-react/src/view/masonry/ToolbarShowSourceButton.tsx type Props (line 7) | type Props = { function ToolbarShowSourceButton (line 12) | function ToolbarShowSourceButton({ root }: Props) { FILE: pdl-live-react/src/view/masonry/View.ts type View (line 1) | type View = "program" | "source" | "rawtrace" function isView (line 3) | function isView(v: string): v is View { FILE: pdl-live-react/src/view/masonry/condvar.ts class ConditionVariable (line 1) | class ConditionVariable { method wait (line 8) | public async wait(): Promise { method signal (line 18) | public signal(): void { method reset (line 26) | public reset(): void { FILE: pdl-live-react/src/view/masonry/model.ts function removeFluff (line 43) | function removeFluff({ kind, block }: Tile) { function computeModel (line 55) | function computeModel(block: import("../../pdl_ast").PdlBlock) { function withDefs (line 157) | function withDefs(block: NonScalarPdlBlock, tiles: Tile[]) { FILE: pdl-live-react/src/view/masonry/stability.ts type StabilityMetric (line 13) | type StabilityMetric = { type BlockWithStabilityMetrics (line 19) | type BlockWithStabilityMetrics = function hasStabilityMetrics (line 24) | function hasStabilityMetrics( function addTemperature (line 31) | function addTemperature(block: NonScalarPdlBlock, temperature: number) { function runNTimes (line 44) | async function runNTimes( type Grouping (line 113) | type Grouping = Record function groupByTemperature (line 115) | function groupByTemperature( function isLocalizedExpression (line 133) | function isLocalizedExpression( function isParameters (line 144) | function isParameters( FILE: pdl-live-react/src/view/term/RunTerminal.tsx type Props (line 10) | type Props = { function RunTerminal (line 27) | function RunTerminal({ FILE: pdl-live-react/src/view/timeline/Timeline.tsx type Props (line 6) | type Props = { function Timeline (line 10) | function Timeline({ block }: Props) { FILE: pdl-live-react/src/view/timeline/TimelineBar.tsx type Props (line 4) | type Props = import("./model").TimelineRowWithExtrema function TimelineBar (line 6) | function TimelineBar({ FILE: pdl-live-react/src/view/timeline/TimelineFromModel.tsx type Props (line 8) | type Props = { function TimelineFromModel (line 15) | function TimelineFromModel({ model, numbering }: Props) { FILE: pdl-live-react/src/view/timeline/TimelineRow.tsx type Props (line 6) | type Props = import("./model").TimelineRowWithExtrema & { function TimelineRow (line 12) | function TimelineRow(row: Props) { function treeSymbols (line 35) | function treeSymbols(row: Props) { function prefixSymbols (line 39) | function prefixSymbols(row: Props) { function finalSymbol (line 43) | function finalSymbol(row: Props) { FILE: pdl-live-react/src/view/timeline/TimelineRowKindCell.tsx type Props (line 7) | type Props = { function TimelineRowKindCell (line 12) | function TimelineRowKindCell({ row, ordinal }: Props) { FILE: pdl-live-react/src/view/timeline/model.ts type TimelineRow (line 13) | type TimelineRow = { type TimelineRowWithExtrema (line 30) | type TimelineRowWithExtrema = TimelineRow & { type TimelineModel (line 38) | type TimelineModel = TimelineRow[] type Position (line 41) | type Position = "push" | "middle" | "pop" function ignore (line 43) | function ignore(_block: PdlBlockWithTiming) { function computeModel (line 47) | function computeModel(block: unknown | PdlBlock): TimelineModel { function squashProximateModelInputs (line 66) | function squashProximateModelInputs(model: TimelineModel): TimelineModel { function computeModelIter (line 84) | function computeModelIter( function childrenOf (line 125) | function childrenOf(block: NonScalarPdlBlock) { function positionOf (line 166) | function positionOf(row: TimelineRow): Position { function nextSibling (line 182) | function nextSibling(row: TimelineRow, idx: number, A: TimelineRow[]) { type PushPop (line 190) | type PushPop = { prefix: boolean[]; position: Position } function pushPopsFor (line 192) | function pushPopsFor(model: TimelineRow[]): PushPop[] { FILE: pdl-live-react/src/window.d.ts type Window (line 1) | interface Window { FILE: src/pdl/__init__.py function _get_distribution_version (line 6) | def _get_distribution_version(distribution_name: str) -> str: FILE: src/pdl/optimize/config_parser.py class JsonlDataset (line 6) | class JsonlDataset(BaseModel): class OptimizationConfig (line 14) | class OptimizationConfig(BaseModel): method get_variable_names (line 40) | def get_variable_names(self) -> list[str]: FILE: src/pdl/optimize/optimizer_evaluator.py class OptimizerEvaluator (line 18) | class OptimizerEvaluator(Thread): method __init__ (line 22) | def __init__( method get_scope (line 48) | def get_scope(self) -> ScopeType: method score (line 51) | def score(self, document: str, ground_truth: Any) -> float: method run (line 54) | def run( # type: ignore # noqa: C901 FILE: src/pdl/optimize/parse_number.py function parse_number (line 39) | def parse_number(text): function extract_math_answer (line 60) | def extract_math_answer(result: str) -> float | int | None: function old_extract (line 71) | def old_extract(result: str) -> float: FILE: src/pdl/optimize/pdl_evaluator.py class PdlEvaluator (line 9) | class PdlEvaluator(OptimizerEvaluator): method __init__ (line 10) | def __init__( method get_scope (line 22) | def get_scope(self) -> ScopeType: method score (line 42) | def score(self, document: str, ground_truth: Any) -> float: FILE: src/pdl/optimize/pdl_optimizer.py function resave_pdl (line 44) | def resave_pdl(input_path: Path, output_path: Path, state: dict) -> int: class BudgetPolicy (line 68) | class BudgetPolicy(Enum): class PDLOptimizer (line 74) | class PDLOptimizer: method __init__ (line 76) | def __init__( method parse_budget (line 121) | def parse_budget(self): method load_pdl (line 144) | def load_pdl(self, path: Path) -> Program: method sample_random_indices (line 148) | def sample_random_indices(self, dataset: list, size: int) -> list[Any]: method sample_random_index (line 157) | def sample_random_index(self, items: list): method random_uuid (line 160) | def random_uuid(self, k: int = 8) -> str: method sample_candidates (line 164) | def sample_candidates( method save_pdl_program (line 253) | def save_pdl_program(self, pdl_program: Program) -> int: method save_experiment (line 260) | def save_experiment(self): method run (line 273) | def run(self) -> dict[str, Any]: method evaluate (line 590) | def evaluate( method benchmark (line 724) | def benchmark(self, test_set_size: int, candidate: dict | None = None): function run_optimizer (line 778) | def run_optimizer() -> int: FILE: src/pdl/optimize/util.py class TrialOutput (line 20) | class TrialOutput: method to_dict (line 34) | def to_dict(self) -> dict: class CandidateResult (line 47) | class CandidateResult: method to_dict (line 55) | def to_dict(self) -> dict: function print_candidate (line 66) | def print_candidate(candidate: dict): function execute_threads (line 73) | def execute_threads(max_threads: int, pdl_threads: list, timeout: int | ... FILE: src/pdl/pdl.py class InterpreterConfig (line 38) | class InterpreterConfig(TypedDict, total=False): class Result (line 73) | class Result(TypedDict): function exec_program (line 82) | def exec_program( function exec_dict (line 133) | def exec_dict( function exec_str (line 157) | def exec_str( function exec_file (line 179) | def exec_file( function pdl (line 205) | def pdl(func): function main (line 213) | def main(): FILE: src/pdl/pdl_ast.py function _ensure_lower (line 33) | def _ensure_lower(value): class BlockKind (line 72) | class BlockKind(StrEnum): class PdlLocationType (line 98) | class PdlLocationType(BaseModel): class LocalizedExpression (line 121) | class LocalizedExpression(BaseModel, Generic[LocalizedExpressionT]): class Pattern (line 173) | class Pattern(BaseModel): class OrPattern (line 182) | class OrPattern(Pattern): class ArrayPattern (line 189) | class ArrayPattern(Pattern): class ObjectPattern (line 196) | class ObjectPattern(Pattern): class AnyPattern (line 203) | class AnyPattern(Pattern): class PdlType (line 244) | class PdlType(BaseModel): class OptionalPdlType (line 250) | class OptionalPdlType(PdlType): class JsonSchemaTypePdlType (line 257) | class JsonSchemaTypePdlType(PdlType): class EnumPdlType (line 266) | class EnumPdlType(PdlType): class ObjectPdlType (line 275) | class ObjectPdlType(PdlType): class Parser (line 302) | class Parser(BaseModel): class PdlParser (line 314) | class PdlParser(Parser): class RegexParser (line 321) | class RegexParser(Parser): class ContributeTarget (line 344) | class ContributeTarget(StrEnum): class ContributeValue (line 353) | class ContributeValue(BaseModel): class ExpectationType (line 368) | class ExpectationType(BaseModel): class PdlTiming (line 384) | class PdlTiming(BaseModel): class PdlUsage (line 406) | class PdlUsage(BaseModel): class Block (line 424) | class Block(BaseModel): class LeafBlock (line 485) | class LeafBlock(Block): class IndependentEnum (line 492) | class IndependentEnum(StrEnum): class StructuredBlock (line 503) | class StructuredBlock(Block): class FunctionBlock (line 511) | class FunctionBlock(LeafBlock): class CallBlock (line 526) | class CallBlock(LeafBlock): class LitellmParameters (line 540) | class LitellmParameters(BaseModel): class OpenaiParameters (line 632) | class OpenaiParameters(BaseModel): class ModelPlatform (line 649) | class ModelPlatform(StrEnum): class ModelBlock (line 655) | class ModelBlock(LeafBlock): class LitellmModelBlock (line 673) | class LitellmModelBlock(ModelBlock): class GraniteioProcessor (line 698) | class GraniteioProcessor(BaseModel): class GraniteioModelBlock (line 710) | class GraniteioModelBlock(ModelBlock): class OpenaiModelBlock (line 724) | class OpenaiModelBlock(ModelBlock): class BaseCodeBlock (line 751) | class BaseCodeBlock(LeafBlock): class CodeBlock (line 757) | class CodeBlock(BaseCodeBlock): class PythonCodeBlock (line 768) | class PythonCodeBlock(CodeBlock): class IPythonCodeBlock (line 787) | class IPythonCodeBlock(CodeBlock): class JinjaCodeBlock (line 805) | class JinjaCodeBlock(CodeBlock): class PdlCodeBlock (line 828) | class PdlCodeBlock(CodeBlock): class CommandCodeBlock (line 850) | class CommandCodeBlock(CodeBlock): class ArgsBlock (line 867) | class ArgsBlock(BaseCodeBlock): class GetBlock (line 886) | class GetBlock(LeafBlock): class DataBlock (line 898) | class DataBlock(LeafBlock): class JoinConfig (line 931) | class JoinConfig(BaseModel): class JoinText (line 939) | class JoinText(JoinConfig): class JoinArray (line 951) | class JoinArray(JoinConfig): class JoinObject (line 959) | class JoinObject(JoinConfig): class JoinLastOf (line 967) | class JoinLastOf(JoinConfig): class JoinReduce (line 975) | class JoinReduce(JoinConfig): class SequenceBlock (line 990) | class SequenceBlock(StructuredBlock): class TextBlock (line 1001) | class TextBlock(StructuredBlock): class LastOfBlock (line 1010) | class LastOfBlock(StructuredBlock): class ArrayBlock (line 1018) | class ArrayBlock(StructuredBlock): class ObjectBlock (line 1026) | class ObjectBlock(StructuredBlock): class MessageBlock (line 1034) | class MessageBlock(LeafBlock): class IfBlock (line 1048) | class IfBlock(StructuredBlock): class MatchCase (line 1075) | class MatchCase(BaseModel): class MatchBlock (line 1094) | class MatchBlock(StructuredBlock): class RepeatBlock (line 1124) | class RepeatBlock(StructuredBlock): class MapBlock (line 1178) | class MapBlock(StructuredBlock): class ReadBlock (line 1227) | class ReadBlock(LeafBlock): class IncludeBlock (line 1255) | class IncludeBlock(StructuredBlock): class ImportBlock (line 1266) | class ImportBlock(LeafBlock): class FactorBlock (line 1277) | class FactorBlock(LeafBlock): class AggregatorConfig (line 1291) | class AggregatorConfig(BaseModel): class FileAggregatorConfig (line 1305) | class FileAggregatorConfig(AggregatorConfig): class AggregatorBlock (line 1323) | class AggregatorBlock(LeafBlock): class ErrorBlock (line 1331) | class ErrorBlock(LeafBlock): class EmptyBlock (line 1343) | class EmptyBlock(LeafBlock): class Program (line 1393) | class Program(RootModel): class PdlBlock (line 1403) | class PdlBlock(RootModel): class PDLException (line 1413) | class PDLException(Exception): method __init__ (line 1414) | def __init__(self, message): class PDLRuntimeError (line 1419) | class PDLRuntimeError(PDLException): method __init__ (line 1420) | def __init__( class PDLRuntimeExpressionError (line 1434) | class PDLRuntimeExpressionError(PDLRuntimeError): class PDLRuntimeParserError (line 1438) | class PDLRuntimeParserError(PDLRuntimeError): class PDLRuntimeProcessBlocksError (line 1442) | class PDLRuntimeProcessBlocksError(PDLException): method __init__ (line 1443) | def __init__( function get_default_model_parameters (line 1467) | def get_default_model_parameters() -> list[dict[str, Any]]: function get_sampling_defaults (line 1591) | def get_sampling_defaults() -> list[dict[str, Any]]: FILE: src/pdl/pdl_ast_utils.py function iter_block_children (line 41) | def iter_block_children(f: Callable[[BlockType], None], block: BlockType... class MappedFunctions (line 131) | class MappedFunctions: method f_block (line 132) | def f_block(self, block: BlockType) -> BlockType: method f_expr (line 135) | def f_expr(self, expr: ExpressionType) -> ExpressionType: function map_block_children (line 139) | def map_block_children(f: MappedFunctions, block: BlockType) -> BlockType: function map_match_case (line 267) | def map_match_case(f: MappedFunctions, match_case: MatchCase) -> MatchCase: FILE: src/pdl/pdl_compilers/to_regex.py class Re (line 33) | class Re(ABC): method to_re (line 35) | def to_re(self) -> str: ... class ReEmpty (line 38) | class ReEmpty(Re): method to_re (line 41) | def to_re(self): class ReConst (line 46) | class ReConst(Re): method to_re (line 51) | def to_re(self): class ReAnyChar (line 55) | class ReAnyChar(Re): method to_re (line 58) | def to_re(self): class ReDigit (line 62) | class ReDigit(Re): method to_re (line 65) | def to_re(self): class ReIn (line 70) | class ReIn(Re): method to_re (line 75) | def to_re(self): class ReNotIn (line 80) | class ReNotIn(Re): method to_re (line 85) | def to_re(self): class ReRange (line 90) | class ReRange(Re): method to_re (line 96) | def to_re(self): class ReBegin (line 100) | class ReBegin(Re): method to_re (line 103) | def to_re(self): class ReEnd (line 107) | class ReEnd(Re): method to_re (line 110) | def to_re(self): class ReStar (line 115) | class ReStar(Re): method to_re (line 120) | def to_re(self): class RePlus (line 126) | class RePlus(Re): method to_re (line 131) | def to_re(self): class ReRepeatN (line 137) | class ReRepeatN(Re): method to_re (line 143) | def to_re(self): class ReOpt (line 149) | class ReOpt(Re): method to_re (line 154) | def to_re(self): class ReSeq (line 160) | class ReSeq(Re): method to_re (line 165) | def to_re(self): class ReOr (line 171) | class ReOr(Re): method to_re (line 176) | def to_re(self): class ReAnyUpto (line 182) | class ReAnyUpto(Re): method to_re (line 187) | def to_re(self): class ReJson (line 191) | class ReJson(Re): method to_re (line 194) | def to_re(self): function _paren (line 212) | def _paren(s: str) -> str: function compile_blocks (line 246) | def compile_blocks( function compile_block (line 259) | def compile_block( function data_to_regex (line 360) | def data_to_regex(data: ExpressionType) -> RegexType: function scope_union (line 484) | def scope_union(scope1: CompileScope, scope2: CompileScope) -> CompileSc... FILE: src/pdl/pdl_context.py class SerializeMode (line 20) | class SerializeMode(StrEnum): class PDLContext (line 26) | class PDLContext(ABC, Sequence): method serialize (line 29) | def serialize(self, mode: SerializeMode) -> list[dict[str, Any]]: ... method __add__ (line 31) | def __add__(self, value: "PDLContext"): method __mul__ (line 34) | def __mul__(self, value: "PDLContext"): class SingletonContext (line 41) | class SingletonContext(PDLContext): method __init__ (line 44) | def __init__(self, message: PdlLazy[dict[str, Any]] | dict[str, Any]): method serialize (line 50) | def serialize(self, mode: SerializeMode) -> list[dict[str, Any]]: method __len__ (line 54) | def __len__(self): method __getitem__ (line 57) | def __getitem__(self, index: int | slice): # pyright: ignore method __repr__ (line 60) | def __repr__(self): # pyright: ignore class IndependentContext (line 64) | class IndependentContext(PDLContext): method __init__ (line 67) | def __init__(self, context: list[PDLContext | dict[str, Any]]): method serialize (line 86) | def serialize(self, mode: SerializeMode) -> list[dict[str, Any]]: method __len__ (line 94) | def __len__(self): # pyright: ignore method __getitem__ (line 97) | def __getitem__(self, index: int | slice): # pyright: ignore method __repr__ (line 100) | def __repr__(self): # pyright: ignore class DependentContext (line 106) | class DependentContext(PDLContext): method __init__ (line 109) | def __init__(self, context: list[PDLContext | dict[str, Any]]): method serialize (line 128) | def serialize(self, mode: SerializeMode) -> list[dict[str, Any]]: method __len__ (line 134) | def __len__(self): # pyright: ignore method __getitem__ (line 137) | def __getitem__(self, index: int | slice): # pyright: ignore method __repr__ (line 140) | def __repr__(self): # pyright: ignore function ensure_context (line 146) | def ensure_context(context: dict | list | PDLContext) -> PDLContext: function deserialize (line 160) | def deserialize( function add_done_callback (line 172) | def add_done_callback( FILE: src/pdl/pdl_distributions.py class Categorical (line 13) | class Categorical(Generic[T]): method __init__ (line 18) | def __init__(self, tuples: list[tuple[T, float, list[Any]]]): method shrink (line 27) | def shrink(self) -> "Categorical[T]": method sample (line 40) | def sample(self) -> T: method sort (line 45) | def sort(self) -> "Categorical[T]": method prob (line 54) | def prob(self, x: T) -> float: function viz (line 64) | def viz(dist: Categorical[float], **kwargs): FILE: src/pdl/pdl_dumper.py function repr_str (line 83) | def repr_str(dumper, data): function dump_yaml (line 92) | def dump_yaml(data, **kwargs): function dumps_json (line 103) | def dumps_json(data, **kwargs): function program_to_dict (line 110) | def program_to_dict( function block_to_dict (line 116) | def block_to_dict(block: pdl_ast.BlockType, json_compatible: bool) -> Du... function advance_block_to_dict (line 122) | def advance_block_to_dict( # noqa: C901 function data_to_dict (line 387) | def data_to_dict(data: Any, json_compatible: bool): function expr_to_dict (line 398) | def expr_to_dict(expr: ExpressionType, json_compatible: bool): function type_to_dict (line 408) | def type_to_dict(t: PdlTypeType): function timing_to_dict (line 448) | def timing_to_dict(timing: PdlTiming) -> dict: function usage_to_dict (line 464) | def usage_to_dict(usage: PdlUsage) -> dict: function expectation_to_dict (line 472) | def expectation_to_dict(req: ExpectationType, json_compatible: bool) -> ... function pattern_to_dict (line 480) | def pattern_to_dict(pattern: PatternType): function join_to_dict (line 502) | def join_to_dict(join: JoinType, json_compatible: bool) -> dict[str, Any]: function as_json (line 521) | def as_json(value: Any) -> JsonType: function parser_to_dict (line 535) | def parser_to_dict(parser: ParserType) -> str | dict[str, Any]: function location_to_dict (line 554) | def location_to_dict(location: PdlLocationType) -> dict[str, Any]: function contribute_to_list (line 558) | def contribute_to_list( function aggregator_to_dict (line 570) | def aggregator_to_dict(aggregator: AggregatorType): function build_exclude (line 581) | def build_exclude(obj: Any, regex: re.Pattern[str]) -> Any: function dump_program_exclude_internals (line 612) | def dump_program_exclude_internals(program: Program) -> str: function dump_program (line 624) | def dump_program(program: Program, exclude: IncEx | None = None) -> str: FILE: src/pdl/pdl_granite_io.py class GraniteioModel (line 19) | class GraniteioModel: method processor_of_block (line 21) | def processor_of_block(block: GraniteioModelBlock): method build_message (line 68) | def build_message( method async_generate_text (line 78) | async def async_generate_text( method generate_text (line 114) | def generate_text( FILE: src/pdl/pdl_infer.py class PpdlConfig (line 33) | class PpdlConfig(TypedDict, total=False): function exec_program (line 53) | def exec_program( # pylint: disable=too-many-arguments, too-many-positi... function exec_dict (line 146) | def exec_dict( # pylint: disable=too-many-arguments, too-many-positiona... function exec_str (line 159) | def exec_str( function exec_file (line 171) | def exec_file( function main (line 187) | def main(): FILE: src/pdl/pdl_inference.py function resample (line 18) | def resample(particles: list[Any], scores: list[float]) -> list[Any]: function make_model (line 27) | def make_model( function infer_importance_sampling (line 44) | def infer_importance_sampling( # pylint: disable=too-many-arguments function infer_importance_sampling_parallel (line 63) | def infer_importance_sampling_parallel( # pylint: disable=too-many-argu... function _process_particle (line 104) | def _process_particle( function infer_smc (line 118) | def infer_smc( # pylint: disable=too-many-arguments function infer_smc_parallel (line 156) | def infer_smc_parallel( # pylint: disable=too-many-arguments function infer_rejection_sampling (line 200) | def infer_rejection_sampling( # pylint: disable=too-many-arguments function infer_rejection_sampling_parallel (line 231) | def infer_rejection_sampling_parallel( # pylint: disable=too-many-argum... function infer_majority_voting (line 267) | def infer_majority_voting( # pylint: disable=too-many-arguments function infer_majority_voting_parallel (line 282) | def infer_majority_voting_parallel( # pylint: disable=too-many-arguments FILE: src/pdl/pdl_interpreter.py class ClosureBlock (line 173) | class ClosureBlock(FunctionBlock): method __call__ (line 178) | def __call__(self, *args, **kwargs): function generate (line 208) | def generate( function process_prog (line 252) | def process_prog( function process_block (line 304) | def process_block( function process_expression_block (line 339) | def process_expression_block( function process_advanced_block_timed (line 374) | def process_advanced_block_timed( function id_with_set_first_use_nanos (line 405) | def id_with_set_first_use_nanos(timing): function set_error_to_scope_for_retry (line 414) | def set_error_to_scope_for_retry( function process_advanced_block (line 441) | def process_advanced_block( # noqa: C901 function process_advance_block_retry (line 471) | def process_advance_block_retry( # noqa: C901 function context_in_contribute (line 638) | def context_in_contribute(block: AdvancedBlockType) -> bool: function result_with_type_checking (line 649) | def result_with_type_checking( function process_block_body_with_replay (line 668) | def process_block_body_with_replay( function process_block_body (line 722) | def process_block_body( function _split_map_output (line 1216) | def _split_map_output( function _evaluate_for_field (line 1234) | def _evaluate_for_field( function _evaluate_max_iterations_field (line 1276) | def _evaluate_max_iterations_field( function _evaluate_join_field (line 1289) | def _evaluate_join_field( function is_matching (line 1303) | def is_matching( # pylint: disable=too-many-return-statements function process_defs (line 1356) | def process_defs( function process_block_of (line 1384) | def process_block_of( # pylint: disable=too-many-arguments, too-many-po... function process_blocks_of (line 1415) | def process_blocks_of( # pylint: disable=too-many-arguments, too-many-p... function process_blocks (line 1448) | def process_blocks( # pylint: disable=too-many-arguments,too-many-posit... function combine_results (line 1522) | def combine_results(join_type: JoinType, results: list[PdlLazy[Any]]): function process_contribute_context (line 1562) | def process_contribute_context( function process_contribute (line 1591) | def process_contribute( function process_contribution (line 1608) | def process_contribution( function process_expr_of (line 1659) | def process_expr_of( function process_condition_of (line 1682) | def process_condition_of( function process_expr (line 1710) | def process_expr( # pylint: disable=too-many-return-statements function _process_expr (line 1728) | def _process_expr( # pylint: disable=too-many-return-statements function process_call_model (line 1819) | def process_call_model( function generate_client_response (line 1971) | def generate_client_response( function generate_client_response_streaming (line 1992) | def generate_client_response_streaming( function litellm_parameters_to_dict (line 2095) | def litellm_parameters_to_dict( function openai_parameters_to_dict (line 2106) | def openai_parameters_to_dict( function generate_client_response_single (line 2117) | def generate_client_response_single( function process_call_code (line 2175) | def process_call_code( function call_python (line 2378) | def call_python(code: str, scope: ScopeType, state: InterpreterState) ->... function call_ipython (line 2396) | def call_ipython(code: str, scope: ScopeType) -> Any: function call_command (line 2405) | def call_command(code: str, code_a: list[str] | None) -> PdlLazy[str]: function call_jinja (line 2423) | def call_jinja(code: str, scope: ScopeType, parameters: dict) -> PdlLazy... function call_pdl (line 2432) | def call_pdl(code: str, scope: ScopeType) -> PdlLazy[Any]: function process_call (line 2439) | def process_call( function execute_call (line 2480) | def execute_call(state, current_context, closure, args, loc): function process_input (line 2512) | def process_input( function process_include (line 2561) | def process_include( function process_import (line 2591) | def process_import( class Aggregator (line 2640) | class Aggregator(ABC): method contribute (line 2642) | def contribute( class ContextAggregator (line 2662) | class ContextAggregator(Aggregator): method __init__ (line 2663) | def __init__(self, messages: LazyMessages | None = None): method contribute (line 2669) | def contribute( class FileAggregator (line 2689) | class FileAggregator(Aggregator): method __init__ (line 2690) | def __init__( method contribute (line 2698) | def contribute( function process_aggregator (line 2714) | def process_aggregator( function get_contribute_aggregator (line 2774) | def get_contribute_aggregator( function parse_result (line 2806) | def parse_result(parser: ParserType, text: str) -> JSONReturnType: function get_var (line 2906) | def get_var(var: str, scope: ScopeType, loc: PdlLocationType) -> Any: FILE: src/pdl/pdl_interpreter_state.py class ScopeType (line 14) | class ScopeType(PdlDict): method __getitem__ (line 17) | def __getitem__(self, key): # pyright: ignore method __or__ (line 22) | def __or__(self, value: PdlLazy | dict): class InterpreterState (line 26) | class InterpreterState(BaseModel): method with_yield_result (line 68) | def with_yield_result(self: "InterpreterState", b: bool) -> "Interpret... method with_yield_background (line 71) | def with_yield_background(self: "InterpreterState", b: bool) -> "Inter... method with_role (line 74) | def with_role(self: "InterpreterState", role: RoleType) -> "Interprete... method with_id (line 77) | def with_id(self: "InterpreterState", n: str) -> "InterpreterState": method with_iter (line 81) | def with_iter(self: "InterpreterState", i: int) -> "InterpreterState": method add_usage (line 84) | def add_usage(self, usage: PdlUsage): FILE: src/pdl/pdl_lazy.py class PdlLazy (line 9) | class PdlLazy(Generic[LazyDataT]): method result (line 13) | def result(self) -> LazyDataT: method data (line 18) | def data(self) -> Any: class PdlConst (line 25) | class PdlConst(PdlLazy[PdlConstT]): method __init__ (line 26) | def __init__(self, data: PdlConstT | Future[PdlConstT]): method data (line 30) | def data(self): method __repr__ (line 33) | def __repr__(self): method result (line 36) | def result(self) -> PdlConstT: class PdlList (line 45) | class PdlList(Sequence[PdlListElemT], PdlLazy[list[PdlListElemT]]): method __init__ (line 46) | def __init__( method data (line 57) | def data(self) -> Union[list[PdlListElemT], "PdlList"]: method __getitem__ (line 65) | def __getitem__(self, index: int | slice): # pyright: ignore method __len__ (line 73) | def __len__(self): method __repr__ (line 76) | def __repr__(self): method __add__ (line 79) | def __add__(self, value: Union["PdlList", list]): method result (line 86) | def result(self): class PdlDict (line 94) | class PdlDict( method __init__ (line 97) | def __init__( method data (line 108) | def data(self): method __getitem__ (line 116) | def __getitem__(self, key): # pyright: ignore method __iter__ (line 124) | def __iter__(self): method __len__ (line 127) | def __len__(self): method __repr__ (line 130) | def __repr__(self): method __or__ (line 133) | def __or__(self, value: Union["PdlLazy", dict]): method result (line 138) | def result(self): # pyright: ignore class PdlApply (line 146) | class PdlApply(PdlLazy[ApplyOutputT]): method __init__ (line 147) | def __init__( method data (line 156) | def data(self): method __repr__ (line 164) | def __repr__(self): method result (line 167) | def result(self) -> ApplyOutputT: function lazy_apply (line 180) | def lazy_apply( class PdlApply2 (line 191) | class PdlApply2(PdlLazy[Apply2OutputT]): method __init__ (line 192) | def __init__( method data (line 205) | def data(self) -> Apply2OutputT | PdlLazy[Apply2OutputT]: method __repr__ (line 220) | def __repr__(self): method result (line 223) | def result(self) -> Apply2OutputT: function lazy_apply2 (line 237) | def lazy_apply2( FILE: src/pdl/pdl_linter.py function _guess_project_root_dir (line 81) | def _guess_project_root_dir(start_path: Path = Path.cwd()) -> Path | None: class LinterConfig (line 150) | class LinterConfig(BaseModel): method model_post_init (line 211) | def model_post_init(self, __context: Any) -> None: method should_ignore (line 240) | def should_ignore(self, path: Path) -> bool: method load (line 269) | def load(cls) -> Self: function _lint_pdl_file (line 358) | def _lint_pdl_file(file_path: Path, config: LinterConfig) -> bool: function _lint_pdl_files_in_directory (line 379) | def _lint_pdl_files_in_directory( function _arg_parser (line 438) | def _arg_parser(): function _setup_logging (line 489) | def _setup_logging(args: argparse.Namespace, config: LinterConfig): function run_linter (line 515) | def run_linter() -> int: FILE: src/pdl/pdl_llms.py class LitellmModel (line 27) | class LitellmModel: method async_generate_text (line 29) | async def async_generate_text( method generate_text (line 73) | def generate_text( method generate_text_stream (line 146) | def generate_text_stream( function set_structured_decoding_parameters (line 174) | def set_structured_decoding_parameters( FILE: src/pdl/pdl_location_utils.py function append (line 6) | def append(loc: PdlLocationType, seg: str) -> PdlLocationType: function normalize (line 10) | def normalize(indentation: list[int], is_array_item: list[bool]) -> list... function get_paths (line 25) | def get_paths( function get_line_map (line 73) | def get_line_map(prog: str) -> dict[str, int]: function get_loc_string (line 94) | def get_loc_string(loc: PdlLocationType) -> str: function get_line (line 102) | def get_line(table: dict[str, int], p: list[str]) -> int: FILE: src/pdl/pdl_notebook_ext.py class PDLMagics (line 16) | class PDLMagics(Magics): method pdl (line 33) | def pdl(self, line, cell, local_ns): method pdl_viewer (line 74) | def pdl_viewer(self, trace): function load_ipython_extension (line 205) | def load_ipython_extension(ipython): FILE: src/pdl/pdl_openai.py class OpenaiModel (line 26) | class OpenaiModel: method _get_client_config (line 28) | def _get_client_config(parameters: dict[str, Any]) -> dict[str, Any]: method _get_client (line 50) | def _get_client(config: dict[str, Any]): method _prepare_parameters (line 57) | def _prepare_parameters( method async_generate_text (line 80) | async def async_generate_text( method generate_text (line 142) | def generate_text( method generate_text_stream (line 215) | def generate_text_stream( FILE: src/pdl/pdl_parser.py class PDLParseError (line 14) | class PDLParseError(PDLException): function parse_file (line 18) | def parse_file(pdl_file: str | Path) -> tuple[Program, PdlLocationType]: function parse_str (line 25) | def parse_str( function parse_dict (line 37) | def parse_dict(pdl_dict: dict[str, Any], loc: PdlLocationType | None = N... FILE: src/pdl/pdl_python_repl.py class PythonREPL (line 15) | class PythonREPL: method __init__ (line 18) | def __init__( method _run_code_in_process (line 44) | def _run_code_in_process(self, code: str, namespace: dict, timeout: fl... method __call__ (line 94) | def __call__(self, query: str) -> str: FILE: src/pdl/pdl_runner.py function exec_docker (line 7) | def exec_docker(*args): FILE: src/pdl/pdl_scheduler.py function _start_background_loop (line 11) | def _start_background_loop(loop): function create_event_loop_thread (line 20) | def create_event_loop_thread() -> AbstractEventLoop: function color_of (line 27) | def color_of(kind: BlockKind): function color_of_role (line 79) | def color_of_role(role: str): function yield_result (line 93) | def yield_result(result: Any, kind: BlockKind) -> None: function yield_background (line 105) | def yield_background(background) -> None: FILE: src/pdl/pdl_schema_error_analyzer.py function is_base_type (line 6) | def is_base_type(schema): function is_array (line 28) | def is_array(schema): function is_object (line 34) | def is_object(schema): function is_any_of (line 40) | def is_any_of(schema): function nullable (line 46) | def nullable(schema): function get_non_null_type (line 54) | def get_non_null_type(schema): function match (line 62) | def match(ref_type, data): function analyze_errors (line 68) | def analyze_errors(defs, schema, data, loc: PdlLocationType) -> list[str... FILE: src/pdl/pdl_schema_utils.py function convert_to_json_type (line 30) | def convert_to_json_type(a_type): function pdltype_to_jsonschema (line 47) | def pdltype_to_jsonschema( function get_json_schema_object (line 96) | def get_json_schema_object( function get_json_schema (line 120) | def get_json_schema( FILE: src/pdl/pdl_schema_validator.py function type_check_args (line 10) | def type_check_args( function type_check_spec (line 40) | def type_check_spec(result: Any, spec: PdlTypeType, loc) -> list[str]: function type_check (line 47) | def type_check(result: Any, schema: dict[str, Any], loc) -> list[str]: FILE: src/pdl/pdl_stdlib.py function _get_logprob (line 4) | def _get_logprob(value: str, top_logprobs): function _find_first_token (line 13) | def _find_first_token(content: str, logprobs): function reward (line 20) | def reward(response): function bool_confidence (line 42) | def bool_confidence(response): FILE: src/pdl/pdl_utils.py class Ref (line 23) | class Ref(Generic[RefT]): method __init__ (line 24) | def __init__(self, ref: RefT): class GeneratorWrapper (line 33) | class GeneratorWrapper( method __init__ (line 38) | def __init__( method __iter__ (line 46) | def __iter__(self): function step_to_completion (line 53) | def step_to_completion(gen: Generator[Any, Any, GeneratorReturnT]) -> Ge... function to_async (line 63) | async def to_async(value: ToAsyncT) -> ToAsyncT: function stringify (line 67) | def stringify(result): function value_of_expr (line 85) | def value_of_expr(expr: ExpressionType[ValueOfExprT]) -> ValueOfExprT: function replace_contribute_value (line 96) | def replace_contribute_value( # TODO: remove function get_contribute_context_value (line 110) | def get_contribute_context_value( function message_post_processing (line 123) | def message_post_processing(message: dict) -> dict[str, Any]: function apply_defaults (line 143) | def apply_defaults( function apply_raw_defaults (line 160) | def apply_raw_defaults( function validate_scope (line 206) | def validate_scope(scope: dict): function validate_pdl_model_defaults (line 211) | def validate_pdl_model_defaults(model_defaults: list[dict[str, dict[str,... function redact_secrets (line 224) | def redact_secrets(data: Any, secrets: list[str]) -> Any: function write_trace (line 253) | def write_trace( class Resample (line 280) | class Resample(Exception): method __init__ (line 281) | def __init__(self, state, score): FILE: tests/test_array.py function test_array_data (line 6) | def test_array_data(): function test_for_data (line 21) | def test_for_data(): function test_repeat_until (line 46) | def test_repeat_until(): FILE: tests/test_ast_utils.py class Counter (line 7) | class Counter: method __init__ (line 8) | def __init__(self): method incr (line 11) | def incr(self, *args): class IterCounter (line 15) | class IterCounter: method __init__ (line 16) | def __init__(self): method count (line 19) | def count(self, ast): class MapCounter (line 24) | class MapCounter: method __init__ (line 25) | def __init__(self): method count (line 28) | def count(map_self, ast): # pylint: disable=no-self-argument # type: ... function test_ast_iterators (line 39) | def test_ast_iterators() -> None: FILE: tests/test_code.py function test_python (line 19) | def test_python(): function show_result_data (line 24) | def show_result_data(show): function test_contribute_result (line 37) | def test_contribute_result(): function test_contribute_context (line 42) | def test_contribute_context(): function test_contribute_false (line 53) | def test_contribute_false(): function test_command (line 86) | def test_command(): function test_command_args (line 94) | def test_command_args(): function test_jinja1 (line 103) | def test_jinja1(): function test_jinja2 (line 115) | def test_jinja2(): function test_jinja3 (line 127) | def test_jinja3(): function test_jinja4 (line 154) | def test_jinja4(): function test_pdl1 (line 169) | def test_pdl1(): function test_pdl2 (line 181) | def test_pdl2(): function test_pdl3 (line 195) | def test_pdl3(): function test_pdl4 (line 209) | def test_pdl4(): function test_lang_casing (line 223) | def test_lang_casing(): function test_scope1 (line 232) | def test_scope1(): function test_scope2 (line 245) | def test_scope2(): function test_scope3 (line 258) | def test_scope3(): FILE: tests/test_cond.py function test_bool (line 5) | def test_bool(): function cond_data1 (line 152) | def cond_data1(show, name): function test_cond1 (line 181) | def test_cond1(): function test_cond2 (line 186) | def test_cond2(): function test_repeat_until (line 219) | def test_repeat_until(): function test_repeat_until_array (line 257) | def test_repeat_until_array(): function test_repeat_until_text (line 287) | def test_repeat_until_text(): function test_repeat_until_text_with (line 330) | def test_repeat_until_text_with(): function test_repeat_until_str (line 371) | def test_repeat_until_str(): FILE: tests/test_context.py function test_p (line 26) | def test_p(): function test_p1 (line 36) | def test_p1(): FILE: tests/test_data.py function test_int (line 4) | def test_int(): function test_array (line 12) | def test_array(): function test_object (line 24) | def test_object(): function test_expr (line 36) | def test_expr(): function test_raw (line 51) | def test_raw(): function test_null (line 67) | def test_null(): function test_none (line 75) | def test_none(): FILE: tests/test_defaults.py function test_default_model_params_empty (line 5) | def test_default_model_params_empty(): function test_default_model_params_nomatch (line 12) | def test_default_model_params_nomatch(): function test_default_model_params_exact_match (line 21) | def test_default_model_params_exact_match(): function test_default_model_params_partial_matches (line 37) | def test_default_model_params_partial_matches(): function test_default_model_params (line 65) | def test_default_model_params(): function test_default_not_granite_20b_code_instruct_r1_1 (line 109) | def test_default_not_granite_20b_code_instruct_r1_1(): function test_default_granite_3_2 (line 118) | def test_default_granite_3_2(): FILE: tests/test_defs.py function test_defs (line 29) | def test_defs(): function test_defs_chain (line 45) | def test_defs_chain(): function test_defs_only (line 53) | def test_defs_only(): FILE: tests/test_dump.py function has_include (line 9) | def has_include(block: BlockType) -> bool: function test_dump (line 23) | def test_dump() -> None: function test_dump_exclude_internals (line 41) | def test_dump_exclude_internals() -> None: FILE: tests/test_errors.py function error (line 12) | def error(raw_data, assertion): function test_error1 (line 34) | def test_error1(): function test_error2 (line 62) | def test_error2(): function test_error5 (line 139) | def test_error5(): FILE: tests/test_examples_parse.py function test_valid_programs (line 19) | def test_valid_programs(capsys: CaptureFixture[str]) -> None: FILE: tests/test_examples_run.py class InputsType (line 22) | class InputsType: class ExecutionErrorCode (line 31) | class ExecutionErrorCode(Enum): class ExecutionResult (line 42) | class ExecutionResult: class ExpectedResult (line 52) | class ExpectedResult: method compare_to_execution (line 61) | def compare_to_execution(self, execution_result: ExecutionResult) -> b... method get_next_results_version (line 87) | def get_next_results_version(self) -> int: class FailedResults (line 98) | class FailedResults: class ExamplesRun (line 110) | class ExamplesRun: method __init__ (line 121) | def __init__(self, monkeypatch: MonkeyPatch) -> None: method __get_results_dir (line 171) | def __get_results_dir(self) -> pathlib.Path: method __collect_expected_results (line 174) | def __collect_expected_results(self) -> None: method __execute_and_replay_file (line 204) | def __execute_and_replay_file(self, pdl_file_name: str) -> None: method __execute_file (line 231) | def __execute_file(self, pdl_file_path, scope, replay): method populate_exec_result_for_checks (line 255) | def populate_exec_result_for_checks(self) -> None: method validate_expected_and_actual (line 264) | def validate_expected_and_actual(self) -> None: method write_results (line 303) | def write_results(self) -> None: function test_example_runs (line 328) | def test_example_runs(capsys: CaptureFixture[str], monkeypatch: MonkeyPa... FILE: tests/test_expr.py function test_arith (line 13) | def test_arith(): function test_var (line 25) | def test_var(): function test_true (line 35) | def test_true(): function test_false (line 45) | def test_false(): function test_undefined_var (line 53) | def test_undefined_var(): function test_autoescape (line 61) | def test_autoescape(): function test_var1 (line 69) | def test_var1(): function test_var2 (line 80) | def test_var2(): function test_list (line 91) | def test_list(): function test_disable_jinja_block (line 102) | def test_disable_jinja_block(): function test_jinja_block (line 114) | def test_jinja_block(): function test_expr_detection1 (line 119) | def test_expr_detection1(): function test_expr_detection2 (line 129) | def test_expr_detection2(): function test_expr_detection3 (line 139) | def test_expr_detection3(): function test_expr_detection4 (line 149) | def test_expr_detection4(): FILE: tests/test_fallback.py function test_direct_fallback (line 9) | def test_direct_fallback(): function test_indirect_fallback (line 20) | def test_indirect_fallback(): function test_error_in_sequence (line 31) | def test_error_in_sequence(): function test_python_exception (line 36) | def test_python_exception(): function test_parse_regex_error (line 46) | def test_parse_regex_error(): function test_type_checking (line 57) | def test_type_checking(): function test_type_checking_in_fallback (line 67) | def test_type_checking_in_fallback(): function test_fallback_and_parser (line 81) | def test_fallback_and_parser(): FILE: tests/test_for.py function for_data (line 7) | def for_data(loop_kind): function test_for_data (line 21) | def test_for_data(): function for_data1 (line 27) | def for_data1(loop_kind): function test_for_data1 (line 39) | def test_for_data1(): function for_data2 (line 45) | def for_data2(loop_kind): function test_for_data2 (line 62) | def test_for_data2(): function for_data3 (line 68) | def for_data3(loop_kind): function test_for_data3 (line 86) | def test_for_data3(): function for_data4 (line 92) | def for_data4(loop_kind): function test_for_data4 (line 106) | def test_for_data4(): function for_as_text_data4 (line 113) | def for_as_text_data4(loop_kind): function test_for_as_text_data4 (line 126) | def test_for_as_text_data4(): function for_data5 (line 133) | def for_data5(loop_kind): function test_for_data5 (line 149) | def test_for_data5(): function test_for_nested_array (line 156) | def test_for_nested_array(): function test_for_object (line 174) | def test_for_object(): function test_for_nested_text (line 196) | def test_for_nested_text(): function for_scope (line 213) | def for_scope(loop_kind): function test_for_scope (line 224) | def test_for_scope(): function for_index (line 236) | def for_index(loop_kind): function test_for_index (line 247) | def test_for_index(): function for_context (line 253) | def for_context(loop_kind): function test_for_context (line 272) | def test_for_context(): function test_for_reduce (line 370) | def test_for_reduce(): function test_for_reduce_python (line 389) | def test_for_reduce_python(): function test_map_max_workers (line 408) | def test_map_max_workers(): FILE: tests/test_function.py function test_function_def (line 13) | def test_function_def(): function test_function_call (line 18) | def test_function_call(): function test_hello_signature (line 23) | def test_hello_signature(): function test_function_params (line 50) | def test_function_params(): function test_hello_params_signature (line 55) | def test_hello_params_signature(): function test_function_implicit_context (line 83) | def test_function_implicit_context(): function test_function_explicit_context (line 101) | def test_function_explicit_context(): function test_call_template (line 122) | def test_call_template(): function test_call_expression_args (line 127) | def test_call_expression_args(): function test_call_from_code_01 (line 135) | def test_call_from_code_01(): function test_call_from_code_02 (line 158) | def test_call_from_code_02(): function test_call_from_code_03 (line 183) | def test_call_from_code_03(): function test_call_from_code_04 (line 210) | def test_call_from_code_04(): function test_call_from_code_05 (line 243) | def test_call_from_code_05(): function test_call_from_code_06 (line 266) | def test_call_from_code_06(): function test_call_from_code_07 (line 283) | def test_call_from_code_07(): function test_call_from_code_08 (line 298) | def test_call_from_code_08(): function test_call_from_code_09 (line 325) | def test_call_from_code_09(): function test_call_from_code_10 (line 352) | def test_call_from_code_10(): FILE: tests/test_include.py function test_include (line 15) | def test_include(): function test_biz (line 44) | def test_biz(): FILE: tests/test_independent.py function test_independent_data (line 22) | def test_independent_data(): function test_for_data (line 51) | def test_for_data(): function test_for_dependent_data (line 75) | def test_for_dependent_data(): function test_lastof_independent_data (line 104) | def test_lastof_independent_data(): function test_array_independent_data (line 141) | def test_array_independent_data(): function test_object_independent_data (line 171) | def test_object_independent_data(): FILE: tests/test_input.py function test_input_json (line 33) | def test_input_json(): function test_input_json_defs (line 49) | def test_input_json_defs(): function test_input_json_defs1 (line 65) | def test_input_json_defs1(): FILE: tests/test_lib_version.py function test_version (line 6) | def test_version(): FILE: tests/test_line_table.py function do_test (line 6) | def do_test(t, capsys): function test_line (line 26) | def test_line(capsys: CaptureFixture[str]): function test_line1 (line 39) | def test_line1(capsys: CaptureFixture[str]): function test_line3 (line 53) | def test_line3(capsys: CaptureFixture[str]): function test_line4 (line 67) | def test_line4(capsys: CaptureFixture[str]): function test_line7 (line 80) | def test_line7(capsys: CaptureFixture[str]): function test_line8 (line 94) | def test_line8(capsys: CaptureFixture[str]): function test_line9 (line 108) | def test_line9(capsys: CaptureFixture[str]): function test_line10 (line 121) | def test_line10(capsys: CaptureFixture[str]): function test_line11 (line 134) | def test_line11(capsys: CaptureFixture[str]): function test_line12 (line 148) | def test_line12(capsys: CaptureFixture[str]): function test_line13 (line 162) | def test_line13(capsys: CaptureFixture[str]): function test_line14 (line 176) | def test_line14(capsys: CaptureFixture[str]): function test_line15 (line 189) | def test_line15(capsys: CaptureFixture[str]): function test_line16 (line 203) | def test_line16(capsys: CaptureFixture[str]): function test_line17 (line 217) | def test_line17(capsys: CaptureFixture[str]): function test_line18 (line 230) | def test_line18(capsys: CaptureFixture[str]): function test_line19 (line 245) | def test_line19(capsys: CaptureFixture[str]): function test_line20 (line 258) | def test_line20(capsys: CaptureFixture[str]): function test_line21 (line 271) | def test_line21(capsys: CaptureFixture[str]): function test_line22 (line 284) | def test_line22(capsys: CaptureFixture[str]): function test_line23 (line 297) | def test_line23(capsys: CaptureFixture[str]): function test_line24 (line 310) | def test_line24(capsys: CaptureFixture[str]): function test_line26 (line 338) | def test_line26(capsys: CaptureFixture[str]): function test_line27 (line 351) | def test_line27(capsys: CaptureFixture[str]): function test_line28 (line 364) | def test_line28(capsys: CaptureFixture[str]): function test_line29 (line 377) | def test_line29(capsys: CaptureFixture[str]): function test_line30 (line 390) | def test_line30(capsys: CaptureFixture[str]): function test_line31 (line 405) | def test_line31(capsys: CaptureFixture[str]): function test_line32 (line 419) | def test_line32(capsys: CaptureFixture[str]): FILE: tests/test_linter.py class ChangeDir (line 30) | class ChangeDir: method __init__ (line 33) | def __init__(self, path: Path): method __enter__ (line 37) | def __enter__(self): method __exit__ (line 41) | def __exit__(self, _exc_type, _exc_value, _traceback): function temp_dir (line 46) | def temp_dir(): function project_root (line 53) | def project_root(temp_dir): # pylint: disable=redefined-outer-name function pdl_file (line 67) | def pdl_file(project_root): # pylint: disable=redefined-outer-name function invalid_pdl_file (line 75) | def invalid_pdl_file(project_root): # pylint: disable=redefined-outer-name function mock_parse_side_effect (line 83) | def mock_parse_side_effect(file_path): function mock_parse_pdl_file (line 93) | def mock_parse_pdl_file(side_effect=mock_parse_side_effect): function test_guess_project_root_dir_from_project_root (line 98) | def test_guess_project_root_dir_from_project_root( function test_guess_project_root_dir_from_subdir (line 107) | def test_guess_project_root_dir_from_subdir( function test_linter_config_validation (line 117) | def test_linter_config_validation(): function test_linter_config_ignore_paths (line 128) | def test_linter_config_ignore_paths( function test_lint_pdl_file_valid (line 168) | def test_lint_pdl_file_valid( function test_lint_pdl_file_invalid (line 178) | def test_lint_pdl_file_invalid( function test_lint_pdl_file_nonexistent (line 190) | def test_lint_pdl_file_nonexistent( function test_lint_pdl_files_in_directory (line 203) | def test_lint_pdl_files_in_directory( function test_linter_configuration_loading (line 238) | def test_linter_configuration_loading( function test_run_linter (line 273) | def test_run_linter( function test_logging_configuration (line 338) | def test_logging_configuration(project_root): # pylint: disable=redefin... function test_linter_with_extra_config_fields (line 358) | def test_linter_with_extra_config_fields( function test_guess_project_root_dir_hg (line 373) | def test_guess_project_root_dir_hg(temp_dir): # pylint: disable=redefin... function test_guess_project_root_dir_git (line 383) | def test_guess_project_root_dir_git(temp_dir): # pylint: disable=redefi... function test_guess_project_root_dir_requirements (line 392) | def test_guess_project_root_dir_requirements( function test_guess_project_root_dir_pyproject (line 403) | def test_guess_project_root_dir_pyproject( function test_guess_project_root_dir_setup_py (line 415) | def test_guess_project_root_dir_setup_py( function test_guess_project_root_dir_multiple_weak_indicators (line 427) | def test_guess_project_root_dir_multiple_weak_indicators( function test_guess_project_root_dir_no_indicators (line 443) | def test_guess_project_root_dir_no_indicators( function test_linter_config_post_init_warnings (line 454) | def test_linter_config_post_init_warnings( function test_linter_config_load_variations (line 488) | def test_linter_config_load_variations( function test_lint_pdl_file_generic_exception (line 541) | def test_lint_pdl_file_generic_exception( function test_lint_pdl_files_in_directory_no_pdl (line 560) | def test_lint_pdl_files_in_directory_no_pdl( function test_arg_parser_defaults_and_flags (line 578) | def test_arg_parser_defaults_and_flags(): function test_setup_logging_levels_and_handlers (line 618) | def test_setup_logging_levels_and_handlers( function test_run_linter_multiple_paths (line 680) | def test_run_linter_multiple_paths( function test_run_linter_invalid_path_arg (line 722) | def test_run_linter_invalid_path_arg( function check_logs (line 751) | def check_logs(caplog, level, message_part): FILE: tests/test_match.py function test_match0 (line 7) | def test_match0(): function test_match1 (line 20) | def test_match1(): function test_match_fail (line 33) | def test_match_fail(): function test_match_if0 (line 46) | def test_match_if0(): function test_match_if1 (line 61) | def test_match_if1(): function test_match_if_fail (line 76) | def test_match_if_fail(): function test_match_case_if1 (line 91) | def test_match_case_if1(): function test_match_case_if2 (line 108) | def test_match_case_if2(): function test_match_case_if3 (line 127) | def test_match_case_if3(): function test_match_case_if4 (line 148) | def test_match_case_if4(): function test_match_case_if5 (line 169) | def test_match_case_if5(): function test_match_expr0 (line 189) | def test_match_expr0(): function test_match_expr_in_case1 (line 204) | def test_match_expr_in_case1(): function test_match_expr_in_case2 (line 219) | def test_match_expr_in_case2(): function test_match_null0 (line 236) | def test_match_null0(): function test_match_null1 (line 249) | def test_match_null1(): function test_match_array0 (line 262) | def test_match_array0(): function test_match_array1 (line 295) | def test_match_array1(): function test_match_object0 (line 321) | def test_match_object0(): function test_match_object1 (line 344) | def test_match_object1(): function test_match_object2 (line 367) | def test_match_object2(): function test_match_object3 (line 393) | def test_match_object3(): function test_any0 (line 435) | def test_any0(): function test_or0 (line 451) | def test_or0(): function test_match_or1 (line 472) | def test_match_or1(): function test_match_or2 (line 497) | def test_match_or2(): function test_match_or3 (line 530) | def test_match_or3(): function test_match_catch_all (line 563) | def test_match_catch_all(): FILE: tests/test_messages.py function test_message1 (line 5) | def test_message1(): function test_message2 (line 45) | def test_message2(): function test_message3 (line 72) | def test_message3(): function test_message4 (line 96) | def test_message4(): function test_messages5 (line 121) | def test_messages5(): function test_messages6 (line 152) | def test_messages6(): FILE: tests/test_model.py function test_model (line 20) | def test_model(): function test_model_chain (line 67) | def test_model_chain(): function test_multi_shot (line 107) | def test_multi_shot(): function test_data_missing_parameters (line 127) | def test_data_missing_parameters(): function test_model_parameter (line 148) | def test_model_parameter(): function test_model_parameter1 (line 166) | def test_model_parameter1(): function test_litellm_mock (line 184) | def test_litellm_mock(): FILE: tests/test_object.py function test_direct_object (line 4) | def test_direct_object(): function test_composed_object (line 18) | def test_composed_object(): FILE: tests/test_optimizer.py function test_gsm8k_cot (line 20) | def test_gsm8k_cot(): function run_optimizer_gsm8k (line 387) | def run_optimizer_gsm8k(pattern, num_demonstrations=0): function run_optimizer_fever (line 743) | def run_optimizer_fever(pattern, num_demonstrations=0): function run_optimizer_mbpp (line 1113) | def run_optimizer_mbpp(pattern, num_demonstrations=0): function test_gsm8k_zeroshot_cot (line 1163) | def test_gsm8k_zeroshot_cot(): function test_gsm8k_fiveshot_react (line 1168) | def test_gsm8k_fiveshot_react(): function test_gsm8k_fiveshot_rewoo (line 1173) | def test_gsm8k_fiveshot_rewoo(): function test_fever_zeroshot_cot (line 1178) | def test_fever_zeroshot_cot(): function test_fever_fiveshot_react (line 1183) | def test_fever_fiveshot_react(): function test_fever_zeroshot_rewoo (line 1188) | def test_fever_zeroshot_rewoo(): function test_mbpp_zeroshot_cot (line 1193) | def test_mbpp_zeroshot_cot(): function test_mbpp_zeroshot_react (line 1198) | def test_mbpp_zeroshot_react(): FILE: tests/test_parse.py function test_model (line 13) | def test_model(): FILE: tests/test_parser.py function test_model_parser (line 29) | def test_model_parser(): function test_model_parser1 (line 51) | def test_model_parser1(): function test_get_parser (line 59) | def test_get_parser(): function test_code_parser (line 81) | def test_code_parser(): function test_code_parser1 (line 92) | def test_code_parser1(): function test_json_parser (line 97) | def test_json_parser(): function test_jsonl_parser (line 120) | def test_jsonl_parser(): function test_regex_findall (line 132) | def test_regex_findall(): function test_regex_split (line 144) | def test_regex_split(): function test_parser_case1 (line 155) | def test_parser_case1(): function test_parser_case2 (line 165) | def test_parser_case2(): function test_parser_csv (line 177) | def test_parser_csv(): FILE: tests/test_repeat.py function repeat_data (line 14) | def repeat_data(n): function nested_repeat_data (line 27) | def nested_repeat_data(n): function test_hello (line 41) | def test_hello(): function test_hello_json (line 46) | def test_hello_json(): function repeat (line 51) | def repeat(n): function test_repeat_neg (line 60) | def test_repeat_neg(): function test_repeat0 (line 64) | def test_repeat0(): function test_repeat1 (line 68) | def test_repeat1(): function test_repeat2 (line 72) | def test_repeat2(): function test_repeat3 (line 76) | def test_repeat3(): function repeat_nested (line 80) | def repeat_nested(n): function test_repeat_nested0 (line 88) | def test_repeat_nested0(): function test_repeat_nested1 (line 92) | def test_repeat_nested1(): function test_repeat_nested2 (line 96) | def test_repeat_nested2(): function test_repeat_nested3 (line 100) | def test_repeat_nested3(): function test_repeat_error (line 117) | def test_repeat_error(): function test_program_as_list (line 122) | def test_program_as_list(): function _while_prog (line 132) | def _while_prog(n): function test_while1 (line 144) | def test_while1(): function test_while2 (line 150) | def test_while2(): function _for_max_iterations_prog (line 156) | def _for_max_iterations_prog(n): function test_for_max_iterations1 (line 165) | def test_for_max_iterations1(): function test_for_max_iterations2 (line 171) | def test_for_max_iterations2(): function _for_max_iterations_index_prog (line 177) | def _for_max_iterations_index_prog(n): function test_for_max_iterations_index1 (line 185) | def test_for_max_iterations_index1(): function _for_until_prog (line 191) | def _for_until_prog(n): function test_for_until1 (line 200) | def test_for_until1(): function test_for_until2 (line 206) | def test_for_until2(): function _for_until_max_iterations_prog (line 212) | def _for_until_max_iterations_prog(n, m): function test_for_until_max_iterations1 (line 222) | def test_for_until_max_iterations1(): function test_for_until_max_iterations2 (line 228) | def test_for_until_max_iterations2(): function test_for_until_max_iterations3 (line 234) | def test_for_until_max_iterations3(): FILE: tests/test_retry.py function repeat_retry_data (line 7) | def repeat_retry_data(n: int): function repeat_retry (line 30) | def repeat_retry(n: int, should_be_no_error: bool = False): function test_repeat_retry_negative (line 46) | def test_repeat_retry_negative(): function test_repeat_retry0 (line 50) | def test_repeat_retry0(): function test_repeat_retry1 (line 54) | def test_repeat_retry1(): function test_repeat_retry2 (line 58) | def test_repeat_retry2(): function test_repeat_retry3 (line 62) | def test_repeat_retry3(): function code_retry_data (line 66) | def code_retry_data(n: int): function code_retry (line 84) | def code_retry(n: int, should_be_no_error: bool = False): function test_code_retry_negative (line 99) | def test_code_retry_negative(): function test_code_retry0 (line 103) | def test_code_retry0(): function test_code_retry1 (line 107) | def test_code_retry1(): function test_code_retry2 (line 111) | def test_code_retry2(): function test_code_retry3 (line 115) | def test_code_retry3(): FILE: tests/test_role.py function test_role0 (line 5) | def test_role0(): function test_role1 (line 17) | def test_role1(): function test_role2 (line 30) | def test_role2(): function test_role3 (line 44) | def test_role3(): FILE: tests/test_runtime_errors.py function test_jinja_undefined (line 7) | def test_jinja_undefined(): function test_jinja_access (line 19) | def test_jinja_access(): function test_jinja_syntax (line 31) | def test_jinja_syntax(): function test_parser_jsonl (line 43) | def test_parser_jsonl(): function test_parser_regex (line 56) | def test_parser_regex(): function test_type_result (line 73) | def test_type_result(): function test_get (line 86) | def test_get(): function test_call_undefined (line 100) | def test_call_undefined(): function test_call_bad_name (line 112) | def test_call_bad_name(): function test_call_bad_args (line 124) | def test_call_bad_args(): FILE: tests/test_schema.py function test_saved_schema (line 10) | def test_saved_schema(): FILE: tests/test_secrets_redaction.py class TestRedactSecrets (line 11) | class TestRedactSecrets: method test_redact_simple_string (line 14) | def test_redact_simple_string(self): method test_redact_multiple_secrets (line 20) | def test_redact_multiple_secrets(self): method test_redact_nested_dict (line 26) | def test_redact_nested_dict(self): method test_redact_list (line 39) | def test_redact_list(self): method test_redact_mixed_structure (line 45) | def test_redact_mixed_structure(self): method test_empty_secrets_list (line 58) | def test_empty_secrets_list(self): method test_no_matching_secrets (line 64) | def test_no_matching_secrets(self): method test_case_sensitive (line 70) | def test_case_sensitive(self): method test_primitives_unchanged (line 76) | def test_primitives_unchanged(self): method test_partial_match_in_string (line 83) | def test_partial_match_in_string(self): method test_multiple_occurrences (line 89) | def test_multiple_occurrences(self): class TestWriteTrace (line 96) | class TestWriteTrace: method test_write_trace_without_secrets (line 99) | def test_write_trace_without_secrets(self): method test_write_trace_with_secrets (line 116) | def test_write_trace_with_secrets(self): method test_write_trace_backward_compatibility (line 135) | def test_write_trace_backward_compatibility(self): method test_write_trace_with_empty_secrets (line 149) | def test_write_trace_with_empty_secrets(self): method test_write_trace_with_none_secrets (line 167) | def test_write_trace_with_none_secrets(self): FILE: tests/test_sequence.py function test_sequence_text1 (line 4) | def test_sequence_text1(): function test_sequence_text2 (line 16) | def test_sequence_text2(): function test_sequence_text3 (line 29) | def test_sequence_text3(): function test_sequence_array1 (line 42) | def test_sequence_array1(): function test_sequence_join1 (line 54) | def test_sequence_join1(): FILE: tests/test_type_checking.py function test_pdltype_to_jsonschema (line 166) | def test_pdltype_to_jsonschema(): function test_function_call (line 194) | def test_function_call(): function test_function_call1 (line 213) | def test_function_call1(): function test_function_call2 (line 232) | def test_function_call2(): function test_function_call3 (line 251) | def test_function_call3(): function test_function_call4 (line 270) | def test_function_call4(): function test_function_call5 (line 289) | def test_function_call5(): function test_function_call6 (line 308) | def test_function_call6(): function test_function_call7 (line 327) | def test_function_call7(): function test_function_call8 (line 346) | def test_function_call8(): function test_function_call9 (line 365) | def test_function_call9(): function test_function_call10 (line 387) | def test_function_call10(): function test_function_call11 (line 409) | def test_function_call11(): function test_function_call12 (line 428) | def test_function_call12(): function test_function_call13 (line 447) | def test_function_call13(): function test_function_call14 (line 466) | def test_function_call14(): function test_function_call15 (line 486) | def test_function_call15(): function test_function_call16 (line 506) | def test_function_call16(): function test_function_call17 (line 526) | def test_function_call17(): function test_function_call18 (line 546) | def test_function_call18(): function test_hello (line 558) | def test_hello(): function test_hello1 (line 570) | def test_hello1(): function test_hello2 (line 587) | def test_hello2(): function do_test_stderr (line 592) | def do_test_stderr(capsys, prog, err): function test_deprecated (line 600) | def test_deprecated(capsys: pytest.CaptureFixture[str]): FILE: tests/test_var.py function test_var (line 32) | def test_var(): function test_code_shared_scope (line 65) | def test_code_shared_scope(): function test_code_shared_scope_no_mutate (line 91) | def test_code_shared_scope_no_mutate(): function test_code_var (line 112) | def test_code_var(): function test_missing_var (line 129) | def test_missing_var(): function test_missing_call (line 140) | def test_missing_call():