Coverage report: 79%

Files Functions Classes

coverage.py v7.6.7, created at 2024-11-22 15:39 -0800

File function statements missing excluded coverage
src/appl/__init__.py _get_loguru_format 1 0 0 100%
src/appl/__init__.py init 70 10 0 86%
src/appl/__init__.py init_within_thread 26 26 0 0%
src/appl/__init__.py init_within_thread.filter_thread_record 3 3 0 0%
src/appl/__init__.py (no function) 45 0 0 100%
src/appl/compositor.py Logged.__init__ 12 1 0 92%
src/appl/compositor.py Logged.prolog 1 0 0 100%
src/appl/compositor.py Logged.epilog 1 0 0 100%
src/appl/compositor.py Logged._get_kwargs_for_inner 2 0 0 100%
src/appl/compositor.py Logged._enter 4 0 0 100%
src/appl/compositor.py Logged._exit 7 2 0 71%
src/appl/compositor.py Tagged.__init__ 7 0 0 100%
src/appl/compositor.py Tagged.formated_attrs 3 0 0 100%
src/appl/compositor.py InlineTagged._get_kwargs_for_inner 5 0 0 100%
src/appl/compositor.py iter 16 6 0 62%
src/appl/compositor.py (no function) 56 0 0 100%
src/appl/const.py (no function) 16 0 0 100%
src/appl/core/__init__.py (no function) 19 0 0 100%
src/appl/core/compile.py _has_arg 1 0 0 100%
src/appl/core/compile.py ApplNodeTransformer.__init__ 2 0 0 100%
src/appl/core/compile.py ApplNodeTransformer._raise_syntax_error 4 0 0 100%
src/appl/core/compile.py RemoveApplDecorator.__init__ 2 0 0 100%
src/appl/core/compile.py RemoveApplDecorator._is_ppl_decorator 5 0 1 100%
src/appl/core/compile.py RemoveApplDecorator.visit_FunctionDef 10 0 0 100%
src/appl/core/compile.py SplitString._add_formatted_value 15 2 0 87%
src/appl/core/compile.py SplitString.visit_Expr 15 2 0 87%
src/appl/core/compile.py CallWithContext.visit_Call 8 0 0 100%
src/appl/core/compile.py AddCtxToArgs.visit_FunctionDef 9 0 0 100%
src/appl/core/compile.py AddExecuteWrapper.visit_Expr 1 0 0 100%
src/appl/core/compile.py DedentTripleQuotedString.visit_Module 2 0 0 100%
src/appl/core/compile.py DedentTripleQuotedString.leave_SimpleString 16 3 0 81%
src/appl/core/compile.py DedentTripleQuotedString.leave_FormattedString 11 1 0 91%
src/appl/core/compile.py DedentTripleQuotedString.leave_FormattedString.get_num_leading_whitespace 3 1 0 67%
src/appl/core/compile.py DedentTripleQuotedString.leave_FormattedString.dedent_str 19 0 0 100%
src/appl/core/compile.py dedent_triple_quoted_string 4 0 0 100%
src/appl/core/compile.py _get_docstring_quote_count 13 1 0 92%
src/appl/core/compile.py APPLCompiled.__init__ 6 0 0 100%
src/appl/core/compile.py APPLCompiled.freevars 3 1 0 67%
src/appl/core/compile.py APPLCompiled.__call__ 13 2 0 85%
src/appl/core/compile.py APPLCompiled.__repr__ 0 0 1 100%
src/appl/core/compile.py appl_dedent 11 0 0 100%
src/appl/core/compile.py appl_compile 16 0 0 100%
src/appl/core/compile.py (no function) 49 0 1 100%
src/appl/core/config.py Configs.getattrs 22 13 0 41%
src/appl/core/config.py Configs.to_yaml 1 1 0 0%
src/appl/core/config.py Configs.__missing__ 1 1 0 0%
src/appl/core/config.py load_config 5 1 0 80%
src/appl/core/config.py (no function) 17 0 0 100%
src/appl/core/context.py PromptContext.__init__ 16 0 0 100%
src/appl/core/context.py PromptContext.records 1 0 0 100%
src/appl/core/context.py PromptContext.set_records 1 1 0 0%
src/appl/core/context.py PromptContext.add_string 4 0 0 100%
src/appl/core/context.py PromptContext.add_image 2 0 0 100%
src/appl/core/context.py PromptContext.add_message 2 0 0 100%
src/appl/core/context.py PromptContext.add_records 3 0 0 100%
src/appl/core/context.py PromptContext.push_printer 2 0 0 100%
src/appl/core/context.py PromptContext.pop_printer 2 0 0 100%
src/appl/core/context.py PromptContext.copy 1 0 0 100%
src/appl/core/context.py PromptContext.inherit 1 0 0 100%
src/appl/core/context.py PromptContext._set_vars 2 2 0 0%
src/appl/core/context.py PromptContext.__getattr__ 11 5 0 55%
src/appl/core/context.py PromptContext.__setattr__ 7 0 0 100%
src/appl/core/context.py PromptContext.__repr__ 0 0 1 100%
src/appl/core/context.py (no function) 23 0 1 100%
src/appl/core/function.py PromptFunc.__init__ 13 0 1 100%
src/appl/core/function.py PromptFunc.compiled_func 1 0 0 100%
src/appl/core/function.py PromptFunc._process_ctx_method 8 2 0 75%
src/appl/core/function.py PromptFunc._run 2 0 0 100%
src/appl/core/function.py PromptFunc._call 42 3 0 93%
src/appl/core/function.py PromptFunc.__repr__ 0 0 4 100%
src/appl/core/function.py (no function) 18 0 1 100%
src/appl/core/generation.py set_gen_name_prefix 1 1 0 0%
src/appl/core/generation.py get_gen_name_prefix 6 1 0 83%
src/appl/core/generation.py Generation.__init__ 28 1 0 96%
src/appl/core/generation.py Generation.__init__.get_response 1 0 0 100%
src/appl/core/generation.py Generation._call_llm 2 0 0 100%
src/appl/core/generation.py Generation._continue_llm 22 1 0 95%
src/appl/core/generation.py Generation._wrap_response 2 0 0 100%
src/appl/core/generation.py Generation._wrap_response.inner 25 5 0 80%
src/appl/core/generation.py Generation._wrap_response.inner.handle_results 20 1 0 95%
src/appl/core/generation.py Generation.id 1 0 0 100%
src/appl/core/generation.py Generation.response 3 0 0 100%
src/appl/core/generation.py Generation.response_type 1 0 0 100%
src/appl/core/generation.py Generation.is_message 1 1 0 0%
src/appl/core/generation.py Generation.is_tool_call 1 0 0 100%
src/appl/core/generation.py Generation.is_obj 1 1 0 0%
src/appl/core/generation.py Generation.message 1 1 0 0%
src/appl/core/generation.py Generation.tool_calls 1 0 0 100%
src/appl/core/generation.py Generation.response_obj 1 0 0 100%
src/appl/core/generation.py Generation.results 1 1 0 0%
src/appl/core/generation.py Generation.str_future 1 1 0 0%
src/appl/core/generation.py Generation.text_stream 1 1 0 0%
src/appl/core/generation.py Generation._call_tool 17 5 0 71%
src/appl/core/generation.py Generation.run_tool_calls 22 5 0 77%
src/appl/core/generation.py Generation.as_prompt 4 2 0 50%
src/appl/core/generation.py Generation.__add__ 5 5 0 0%
src/appl/core/generation.py Generation.__radd__ 3 3 0 0%
src/appl/core/generation.py Generation.__getattr__ 2 0 0 100%
src/appl/core/generation.py Generation.__str__ 1 0 0 100%
src/appl/core/generation.py Generation.__repr__ 0 0 1 100%
src/appl/core/generation.py Generation.__call__ 1 1 0 0%
src/appl/core/generation.py (no function) 61 0 1 100%
src/appl/core/globals.py get_thread_local 1 0 0 100%
src/appl/core/globals.py set_thread_local 1 1 0 0%
src/appl/core/globals.py inc_thread_local 4 0 0 100%
src/appl/core/globals.py get_global_var 2 2 0 0%
src/appl/core/globals.py set_global_var 2 2 0 0%
src/appl/core/globals.py inc_global_var 5 0 0 100%
src/appl/core/globals.py get_executor 11 3 0 73%
src/appl/core/globals.py (no function) 30 0 0 100%
src/appl/core/io.py makedirs 2 0 0 100%
src/appl/core/io.py get_ext 1 0 0 100%
src/appl/core/io.py dump_file 16 8 0 50%
src/appl/core/io.py load_file 15 7 0 53%
src/appl/core/io.py (no function) 11 0 0 100%
src/appl/core/message.py get_role_color 2 0 0 100%
src/appl/core/message.py get_colored_role_text 5 0 0 100%
src/appl/core/message.py BaseMessage.__init__ 1 0 0 100%
src/appl/core/message.py BaseMessage.is_system 1 0 0 100%
src/appl/core/message.py BaseMessage.is_user 1 0 0 100%
src/appl/core/message.py BaseMessage.is_ai 1 0 0 100%
src/appl/core/message.py BaseMessage.is_tool 1 0 0 100%
src/appl/core/message.py BaseMessage.validate_role 9 3 0 67%
src/appl/core/message.py BaseMessage.should_merge 5 2 0 60%
src/appl/core/message.py BaseMessage.get_content 9 0 0 100%
src/appl/core/message.py BaseMessage.get_dict 9 4 0 56%
src/appl/core/message.py BaseMessage.merge 7 0 0 100%
src/appl/core/message.py BaseMessage.str_with_default_role 1 0 0 100%
src/appl/core/message.py BaseMessage._get_serialized_content 3 0 0 100%
src/appl/core/message.py BaseMessage._get_colored_content 1 0 0 100%
src/appl/core/message.py BaseMessage.__str__ 1 0 0 100%
src/appl/core/message.py BaseMessage.__repr__ 0 0 1 100%
src/appl/core/message.py ChatMessage.__init__ 1 0 0 100%
src/appl/core/message.py SystemMessage.__init__ 2 0 0 100%
src/appl/core/message.py UserMessage.__init__ 2 0 0 100%
src/appl/core/message.py AIMessage.__init__ 4 0 0 100%
src/appl/core/message.py AIMessage.get_dict 4 0 0 100%
src/appl/core/message.py AIMessage._get_serialized_content 7 1 0 86%
src/appl/core/message.py AIMessage.__repr__ 0 0 4 100%
src/appl/core/message.py ToolMessage.__init__ 2 0 0 100%
src/appl/core/message.py ToolMessage.get_dict 3 3 0 0%
src/appl/core/message.py as_message 7 1 0 86%
src/appl/core/message.py collapse_messages 12 0 0 100%
src/appl/core/message.py Conversation.has_message_role 1 0 0 100%
src/appl/core/message.py Conversation.collapse 5 1 0 80%
src/appl/core/message.py Conversation.materialize 1 0 0 100%
src/appl/core/message.py Conversation.set_system_messages 3 3 0 0%
src/appl/core/message.py Conversation.append 5 0 0 100%
src/appl/core/message.py Conversation.extend 4 0 0 100%
src/appl/core/message.py Conversation.pop 1 0 0 100%
src/appl/core/message.py Conversation.as_list 4 0 0 100%
src/appl/core/message.py Conversation.make_copy 1 1 0 0%
src/appl/core/message.py Conversation.__repr__ 0 0 1 100%
src/appl/core/message.py Conversation.__str__ 5 0 0 100%
src/appl/core/message.py Conversation.__iter__ 1 1 0 0%
src/appl/core/message.py Conversation.__getitem__ 1 1 0 0%
src/appl/core/message.py Conversation.__len__ 1 1 0 0%
src/appl/core/message.py (no function) 71 0 3 100%
src/appl/core/modifiers.py PrinterModifier.__init__ 1 0 0 100%
src/appl/core/modifiers.py PrinterModifier.push_args 0 0 1 100%
src/appl/core/modifiers.py PrinterModifier._enter 3 1 0 67%
src/appl/core/modifiers.py PrinterModifier._exit 6 0 0 100%
src/appl/core/modifiers.py PrinterModifier.__enter__ 2 0 0 100%
src/appl/core/modifiers.py PrinterModifier.__exit__ 1 0 0 100%
src/appl/core/modifiers.py Compositor.__init__ 22 5 0 77%
src/appl/core/modifiers.py Compositor.push_args 1 0 0 100%
src/appl/core/modifiers.py Compositor.__enter__ 2 0 0 100%
src/appl/core/modifiers.py (no function) 36 0 0 100%
src/appl/core/patch.py _get_new_target 3 0 0 100%
src/appl/core/patch.py _get_new_target.new_target 1 0 0 100%
src/appl/core/patch.py patch_threading 5 0 0 100%
src/appl/core/patch.py patch_threading.ThreadWithContext.__init__ 5 2 0 60%
src/appl/core/patch.py (no function) 5 0 0 100%
src/appl/core/printer.py Indexing.__init__ 4 0 0 100%
src/appl/core/printer.py Indexing._get_index 24 7 0 71%
src/appl/core/printer.py Indexing.get_index 6 1 0 83%
src/appl/core/printer.py Indexing.__repr__ 0 0 1 100%
src/appl/core/printer.py PromptRecords.__init__ 1 0 0 100%
src/appl/core/printer.py PromptRecords.records 1 0 0 100%
src/appl/core/printer.py PromptRecords.as_convo 1 0 0 100%
src/appl/core/printer.py PromptRecords.record 5 2 0 60%
src/appl/core/printer.py PromptRecords.extend 1 0 0 100%
src/appl/core/printer.py PromptRecords.copy 1 0 0 100%
src/appl/core/printer.py PromptRecords.__str__ 1 0 0 100%
src/appl/core/printer.py PromptPrinter.__init__ 4 0 0 100%
src/appl/core/printer.py PromptPrinter.states 1 0 0 100%
src/appl/core/printer.py PromptPrinter.push 1 0 0 100%
src/appl/core/printer.py PromptPrinter.pop 3 1 0 67%
src/appl/core/printer.py PromptPrinter._push 28 2 0 93%
src/appl/core/printer.py PromptPrinter._print_str 34 1 0 97%
src/appl/core/printer.py PromptPrinter._print_message 3 0 0 100%
src/appl/core/printer.py PromptPrinter._print 7 0 0 100%
src/appl/core/printer.py PromptPrinter._print.handle 18 1 0 94%
src/appl/core/printer.py (no function) 66 0 1 100%
src/appl/core/promptable/__init__.py (no function) 3 0 0 100%
src/appl/core/promptable/base.py Promptable.__prompt__ 0 0 2 100%
src/appl/core/promptable/base.py promptify 6 2 0 67%
src/appl/core/promptable/base.py (no function) 3 0 2 100%
src/appl/core/promptable/definition.py Definition.__init__ 11 2 0 82%
src/appl/core/promptable/definition.py Definition.__hash__ 1 1 0 0%
src/appl/core/promptable/definition.py Definition.__prompt__ 5 0 0 100%
src/appl/core/promptable/definition.py Definition.__repr__ 0 0 5 100%
src/appl/core/promptable/definition.py Definition.__str__ 1 0 0 100%
src/appl/core/promptable/definition.py define 4 0 0 100%
src/appl/core/promptable/definition.py define_bracketed 3 0 0 100%
src/appl/core/promptable/definition.py (no function) 16 0 2 100%
src/appl/core/promptable/formatter.py FormatterMeta._get_format_str 3 1 0 67%
src/appl/core/promptable/formatter.py FormatterMeta._get_format_name 5 3 0 40%
src/appl/core/promptable/formatter.py FormatterMeta.__format__ 3 0 0 100%
src/appl/core/promptable/formatter.py FormatterMeta.__repr__ 0 0 1 100%
src/appl/core/promptable/formatter.py (no function) 10 0 1 100%
src/appl/core/response.py CompletionResponse._post_init 5 0 0 100%
src/appl/core/response.py CompletionResponse.set_response_obj 1 0 0 100%
src/appl/core/response.py CompletionResponse.complete_response 5 3 0 40%
src/appl/core/response.py CompletionResponse.results 8 0 0 100%
src/appl/core/response.py CompletionResponse.type 7 2 0 71%
src/appl/core/response.py CompletionResponse.update 27 5 1 81%
src/appl/core/response.py CompletionResponse.update.as_list 3 1 0 67%
src/appl/core/response.py CompletionResponse.update.merge_usage 6 1 0 83%
src/appl/core/response.py CompletionResponse.streaming 48 29 0 40%
src/appl/core/response.py CompletionResponse.streaming.panel 8 8 0 0%
src/appl/core/response.py CompletionResponse.register_post_finish_callback 7 2 0 71%
src/appl/core/response.py CompletionResponse.format_stream 16 8 0 50%
src/appl/core/response.py CompletionResponse._finish 29 7 0 76%
src/appl/core/response.py CompletionResponse._finish_stream 6 3 0 50%
src/appl/core/response.py CompletionResponse.__str__ 3 1 0 67%
src/appl/core/response.py CompletionResponse.__next__ 9 1 0 89%
src/appl/core/response.py CompletionResponse.__iter__ 3 1 0 67%
src/appl/core/response.py CompletionResponse.__getattr__ 4 4 0 0%
src/appl/core/response.py (no function) 71 0 0 100%
src/appl/core/runtime.py appl_with_ctx 12 6 0 50%
src/appl/core/runtime.py appl_execute 40 7 0 82%
src/appl/core/runtime.py appl_format 6 1 0 83%
src/appl/core/runtime.py (no function) 15 0 0 100%
src/appl/core/server.py GenArgs.preprocess 17 1 0 94%
src/appl/core/server.py BaseServer.model_name 0 0 2 100%
src/appl/core/server.py BaseServer._get_create_args 0 0 2 100%
src/appl/core/server.py BaseServer._convert 0 0 9 100%
src/appl/core/server.py BaseServer._create 0 0 9 100%
src/appl/core/server.py BaseServer.create 3 0 0 100%
src/appl/core/server.py BaseServer.close 0 0 2 100%
src/appl/core/server.py DummyServer.model_name 1 0 0 100%
src/appl/core/server.py DummyServer._get_create_args 1 0 0 100%
src/appl/core/server.py DummyServer._convert 1 1 0 0%
src/appl/core/server.py DummyServer._create 2 0 0 100%
src/appl/core/server.py DummyServer.close 1 1 0 0%
src/appl/core/server.py (no function) 34 0 11 100%
src/appl/core/tool.py BaseTool.__init__ 9 0 0 100%
src/appl/core/tool.py BaseTool.parse_data 30 2 0 93%
src/appl/core/tool.py BaseTool.openai_schema 1 0 0 100%
src/appl/core/tool.py BaseTool.to_str 3 3 0 0%
src/appl/core/tool.py BaseTool._get_description 0 0 1 100%
src/appl/core/tool.py BaseTool._serialize_params 1 1 0 0%
src/appl/core/tool.py BaseTool._serialize_returns 1 1 0 0%
src/appl/core/tool.py BaseTool.__str__ 1 1 0 0%
src/appl/core/tool.py BaseTool._call 2 0 0 100%
src/appl/core/tool.py Tool.__init__ 2 0 0 100%
src/appl/core/tool.py Tool._get_description 6 1 0 83%
src/appl/core/tool.py ToolCall.get_dict 1 0 0 100%
src/appl/core/tool.py ToolCall.from_dict 1 1 0 0%
src/appl/core/tool.py ToolCall.from_openai_tool_call 1 0 0 100%
src/appl/core/tool.py (no function) 56 0 2 100%
src/appl/core/trace.py TraceEventBase._check_time_stamp 3 0 0 100%
src/appl/core/trace.py TraceNode.runtime 1 1 0 0%
src/appl/core/trace.py add_to_trace 2 0 0 100%
src/appl/core/trace.py traceable 1 0 0 100%
src/appl/core/trace.py traceable 0 0 0 100%
src/appl/core/trace.py traceable 7 1 0 86%
src/appl/core/trace.py traceable.decorator 2 0 0 100%
src/appl/core/trace.py traceable.decorator.wrapper 15 0 0 100%
src/appl/core/trace.py traceable.decorator.wrapper._get_bind_args 6 0 0 100%
src/appl/core/trace.py TraceEngineBase.events 0 0 2 100%
src/appl/core/trace.py TraceEngineBase.min_timestamp 1 1 0 0%
src/appl/core/trace.py TraceEngineBase.trace_nodes 0 0 2 100%
src/appl/core/trace.py TraceEngineBase.append 0 0 2 100%
src/appl/core/trace.py TraceEngineBase.find_cache 0 0 10 100%
src/appl/core/trace.py find_in_cache 6 2 0 67%
src/appl/core/trace.py TracePrinterBase.print 0 0 2 100%
src/appl/core/trace.py (no function) 76 0 12 100%
src/appl/core/types/__init__.py (no function) 9 1 0 89%
src/appl/core/types/basic.py (no function) 20 1 0 95%
src/appl/core/types/content.py Image.__init__ 1 0 0 100%
src/appl/core/types/content.py Image.from_image 5 5 0 0%
src/appl/core/types/content.py Image.from_file 2 2 0 0%
src/appl/core/types/content.py Image.__repr__ 0 0 1 100%
src/appl/core/types/content.py Image.__str__ 1 0 0 100%
src/appl/core/types/content.py ContentList.__iadd__ 6 1 0 83%
src/appl/core/types/content.py ContentList.append 3 0 0 100%
src/appl/core/types/content.py ContentList.extend 2 0 0 100%
src/appl/core/types/content.py ContentList.get_contents 2 0 0 100%
src/appl/core/types/content.py ContentList.get_contents.get_dict 6 1 0 83%
src/appl/core/types/content.py ContentList.__str__ 1 0 0 100%
src/appl/core/types/content.py (no function) 27 0 1 100%
src/appl/core/types/custom.py (no function) 12 0 0 100%
src/appl/core/types/deps.py (no function) 0 0 0 100%
src/appl/core/types/futures.py FutureValue._get_val 0 0 5 100%
src/appl/core/types/futures.py FutureValue.val 1 0 0 100%
src/appl/core/types/futures.py FutureValue.__call__ 1 0 0 100%
src/appl/core/types/futures.py CallFuture.__init__ 7 0 0 100%
src/appl/core/types/futures.py CallFuture._submit 3 0 0 100%
src/appl/core/types/futures.py CallFuture.future 3 1 0 67%
src/appl/core/types/futures.py CallFuture.result 4 0 0 100%
src/appl/core/types/futures.py CallFuture.cancel 4 4 0 0%
src/appl/core/types/futures.py CallFuture.done 1 1 0 0%
src/appl/core/types/futures.py CallFuture._get_val 1 0 0 100%
src/appl/core/types/futures.py CallFuture.__str__ 1 0 0 100%
src/appl/core/types/futures.py CallFuture.__repr__ 0 0 1 100%
src/appl/core/types/futures.py CmpStringFuture.__init__ 3 0 0 100%
src/appl/core/types/futures.py CmpStringFuture.__bool__ 1 0 0 100%
src/appl/core/types/futures.py CmpStringFuture._get_val 1 1 0 0%
src/appl/core/types/futures.py StringFuture.__init__ 6 1 0 83%
src/appl/core/types/futures.py StringFuture.from_list 1 0 0 100%
src/appl/core/types/futures.py StringFuture._collapse 1 0 0 100%
src/appl/core/types/futures.py StringFuture.materialized 2 0 0 100%
src/appl/core/types/futures.py StringFuture.serialize 1 1 0 0%
src/appl/core/types/futures.py StringFuture.join 6 6 0 0%
src/appl/core/types/futures.py StringFuture._get_val 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__str__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__hash__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__contains__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__getattr__ 3 1 0 67%
src/appl/core/types/futures.py StringFuture.__iadd__ 7 1 0 86%
src/appl/core/types/futures.py StringFuture.__radd__ 3 1 0 67%
src/appl/core/types/futures.py StringFuture.__add__ 7 3 0 57%
src/appl/core/types/futures.py StringFuture.__eq__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__ge__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__gt__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__le__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__lt__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__ne__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__format__ 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__getitem__ 2 0 0 100%
src/appl/core/types/futures.py StringFuture.__getitem__.func 1 0 0 100%
src/appl/core/types/futures.py StringFuture.__deepcopy__ 1 0 0 100%
src/appl/core/types/futures.py is_string 1 0 0 100%
src/appl/core/types/futures.py (no function) 55 0 3 100%
src/appl/core/types/role.py MessageRole.__init__ 3 0 0 100%
src/appl/core/types/role.py MessageRole.is_system 1 0 0 100%
src/appl/core/types/role.py MessageRole.is_user 1 0 0 100%
src/appl/core/types/role.py MessageRole.is_assistant 1 0 0 100%
src/appl/core/types/role.py MessageRole.is_tool 1 0 0 100%
src/appl/core/types/role.py MessageRole.get_dict 4 0 0 100%
src/appl/core/types/role.py MessageRole.__str__ 4 0 0 100%
src/appl/core/types/role.py MessageRole.__eq__ 3 0 0 100%
src/appl/core/types/role.py (no function) 30 0 0 100%
src/appl/core/utils.py strip_for_continue 1 0 0 100%
src/appl/core/utils.py split_last 5 0 0 100%
src/appl/core/utils.py make_panel 11 11 0 0%
src/appl/core/utils.py get_live 6 6 0 0%
src/appl/core/utils.py stop_live 4 4 0 0%
src/appl/core/utils.py _copy_appl_attrs 3 0 0 100%
src/appl/core/utils.py need_ctx 2 0 0 100%
src/appl/core/utils.py partial 3 0 0 100%
src/appl/core/utils.py wraps 2 0 0 100%
src/appl/core/utils.py wraps.decorator 3 0 0 100%
src/appl/core/utils.py (no function) 25 0 0 100%
src/appl/func.py auto_prime_gen 2 0 0 100%
src/appl/func.py auto_prime_gen.wrapper 3 0 0 100%
src/appl/func.py ppl 1 0 0 100%
src/appl/func.py ppl 0 0 0 100%
src/appl/func.py ppl 6 0 0 100%
src/appl/func.py ppl.decorator 15 0 0 100%
src/appl/func.py ppl.decorator.wrapper 19 2 0 89%
src/appl/func.py reset_context 6 6 0 0%
src/appl/func.py as_func 4 0 0 100%
src/appl/func.py str_future 1 1 0 0%
src/appl/func.py as_tool 1 0 0 100%
src/appl/func.py as_tool_choice 4 4 0 0%
src/appl/func.py call 1 0 0 100%
src/appl/func.py openai_tool_schema 1 1 0 0%
src/appl/func.py get_var 1 1 0 0%
src/appl/func.py records 3 1 0 67%
src/appl/func.py convo 3 1 0 67%
src/appl/func.py empty_line 6 6 0 0%
src/appl/func.py build_tools 6 2 0 67%
src/appl/func.py build_tools.convert_to_tool 5 3 0 40%
src/appl/func.py grow 3 3 0 0%
src/appl/func.py gen 40 16 0 60%
src/appl/func.py gen.langsmith_trace 1 0 0 100%
src/appl/func.py (no function) 42 0 0 100%
src/appl/role_changer.py RoleChanger.__init__ 3 0 0 100%
src/appl/role_changer.py RoleChanger.push_args 1 0 0 100%
src/appl/role_changer.py SystemRole.__init__ 2 0 0 100%
src/appl/role_changer.py UserRole.__init__ 2 0 0 100%
src/appl/role_changer.py AIRole.__init__ 2 0 0 100%
src/appl/role_changer.py ToolRole.__init__ 2 2 0 0%
src/appl/role_changer.py (no function) 19 0 0 100%
src/appl/servers/__init__.py (no function) 2 0 0 100%
src/appl/servers/api.py chat_completion 25 6 0 76%
src/appl/servers/api.py chat_completion.wrapped 8 5 0 38%
src/appl/servers/api.py chat_completion.post_completion 9 2 0 78%
src/appl/servers/api.py APIServer.__init__ 9 1 0 89%
src/appl/servers/api.py APIServer.model_name 1 0 0 100%
src/appl/servers/api.py APIServer._get_create_args 13 4 0 69%
src/appl/servers/api.py APIServer._create 35 21 0 40%
src/appl/servers/api.py APIServer._create.wrapper 2 2 0 0%
src/appl/servers/api.py APIServer._convert 1 0 0 100%
src/appl/servers/api.py APIServer.close 1 1 0 0%
src/appl/servers/api.py (no function) 33 0 0 100%
src/appl/servers/manager.py _init_server 15 2 0 87%
src/appl/servers/manager.py _get_server_configs 17 7 0 59%
src/appl/servers/manager.py ServerManager.__init__ 2 0 0 100%
src/appl/servers/manager.py ServerManager.register_server 1 0 0 100%
src/appl/servers/manager.py ServerManager.close_server 3 3 0 0%
src/appl/servers/manager.py ServerManager.get_server 8 0 0 100%
src/appl/servers/manager.py ServerManager.default_server 3 3 0 0%
src/appl/servers/manager.py (no function) 17 0 0 100%
src/appl/tracing/__init__.py (no function) 2 0 0 100%
src/appl/tracing/engine.py TraceEngine.__init__ 16 7 0 56%
src/appl/tracing/engine.py TraceEngine.events 1 1 0 0%
src/appl/tracing/engine.py TraceEngine.trace_nodes 1 1 0 0%
src/appl/tracing/engine.py TraceEngine.convert_pydantic_class_to_schema 3 1 0 67%
src/appl/tracing/engine.py TraceEngine.args_to_json 6 0 0 100%
src/appl/tracing/engine.py TraceEngine.append 49 1 0 98%
src/appl/tracing/engine.py TraceEngine.find_cache 7 7 0 0%
src/appl/tracing/engine.py TraceEngine._add_node 8 1 0 88%
src/appl/tracing/engine.py TraceEngine._get_node 5 1 0 80%
src/appl/tracing/engine.py TraceEngine._last_func 1 0 0 100%
src/appl/tracing/engine.py TraceEngine._cache_key 4 1 0 75%
src/appl/tracing/engine.py TraceEngine._read 6 6 0 0%
src/appl/tracing/engine.py (no function) 28 0 0 100%
src/appl/tracing/printer.py timestamp_to_iso 1 1 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter.__init__ 7 7 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter.print 12 12 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._print_messages 10 10 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._print_messages.display 1 1 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._print_genargs 18 18 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._print_gen 19 19 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._print_func 10 10 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._print_node 3 3 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._toggle_attrs 1 1 0 0%
src/appl/tracing/printer.py TraceHTMLPrinter._make_line 1 1 0 0%
src/appl/tracing/printer.py TraceLunaryPrinter.print 30 30 0 0%
src/appl/tracing/printer.py TraceLunaryPrinter.print.get_parent_run_id 3 3 0 0%
src/appl/tracing/printer.py TraceYAMLPrinter.print 1 1 0 0%
src/appl/tracing/printer.py TraceProfilePrinter.__init__ 1 1 0 0%
src/appl/tracing/printer.py TraceProfilePrinter.build_event 22 22 0 0%
src/appl/tracing/printer.py TraceProfilePrinter.print 5 5 0 0%
src/appl/tracing/printer.py (no function) 40 0 0 100%
src/appl/types.py (no function) 10 0 0 100%
src/appl/utils.py _is_interactive 5 2 0 60%
src/appl/utils.py get_folder 12 8 0 33%
src/appl/utils.py find_files 8 0 0 100%
src/appl/utils.py find_dotenv 7 7 0 0%
src/appl/utils.py get_num_tokens 1 1 0 0%
src/appl/utils.py get_meta_file 1 1 0 0%
src/appl/utils.py timeit 3 3 0 0%
src/appl/utils.py timeit.timer 5 5 0 0%
src/appl/utils.py LoguruFormatter.__init__ 5 0 0 100%
src/appl/utils.py LoguruFormatter.loguru_format 11 7 0 36%
src/appl/utils.py (no function) 30 0 0 100%
src/appl/version.py (no function) 5 2 0 60%
tests/test_func.py test_docstring 2 0 0 100%
tests/test_func.py test_docstring.func 0 0 0 100%
tests/test_func.py test_signature 4 0 0 100%
tests/test_func.py test_signature.add 1 1 0 0%
tests/test_func.py test_signature.add2 1 1 0 0%
tests/test_func.py test_functionality 2 0 0 100%
tests/test_func.py test_functionality.add 1 1 0 0%
tests/test_func.py test_decorator 6 0 0 100%
tests/test_func.py test_decorator.extra 2 0 0 100%
tests/test_func.py test_decorator.extra.inner 1 0 0 100%
tests/test_func.py test_decorator.add 1 1 0 0%
tests/test_func.py test_classmethod 8 0 0 100%
tests/test_func.py test_classmethod.A.addon 0 0 0 100%
tests/test_func.py test_classmethod.A.func 2 2 0 0%
tests/test_func.py test_super_in_class 6 0 0 100%
tests/test_func.py test_super_in_class.A.func 1 0 0 100%
tests/test_func.py test_super_in_class.B.func 1 1 0 0%
tests/test_func.py test_nested_ppl_error 4 0 0 100%
tests/test_func.py test_nested_ppl_error.func 4 4 0 0%
tests/test_func.py test_nested_ppl_error.func.func2 0 0 0 100%
tests/test_func.py test_function_inside_ppl 5 0 0 100%
tests/test_func.py test_function_inside_ppl.f1 3 3 0 0%
tests/test_func.py test_function_inside_ppl.f1.f2 0 0 0 100%
tests/test_func.py test_function_inside_ppl.f3 2 2 0 0%
tests/test_func.py test_function_inside_ppl.f3.f4 0 0 0 100%
tests/test_func.py test_closure 12 0 0 100%
tests/test_func.py test_closure.func 1 1 0 0%
tests/test_func.py test_closure.f2 2 0 0 100%
tests/test_func.py test_closure.f2.f3 1 1 0 0%
tests/test_func.py test_wrapper 4 0 0 100%
tests/test_func.py test_wrapper.wrapper 4 0 0 100%
tests/test_func.py test_wrapper.wrapper.func 2 2 0 0%
tests/test_func.py test_global 2 0 0 100%
tests/test_func.py test_global.func 1 1 0 0%
tests/test_func.py (no function) 21 0 0 100%
tests/test_gen.py test_gen 7 0 0 100%
tests/test_gen.py test_gen.func 1 1 0 0%
tests/test_gen.py test_gen.dummy 1 1 0 0%
tests/test_gen.py test_chat_gen 11 0 0 100%
tests/test_gen.py test_chat_gen.chat_gen 7 7 0 0%
tests/test_gen.py test_gen_error 4 0 0 100%
tests/test_gen.py (no function) 7 0 0 100%
tests/test_message.py test_message 9 0 0 100%
tests/test_message.py test_msg_role 2 0 0 100%
tests/test_message.py test_msg_role.func 2 2 0 0%
tests/test_message.py test_chat_example 6 0 0 100%
tests/test_message.py test_chat_example.func 5 5 0 0%
tests/test_message.py test_system_msg 2 0 0 100%
tests/test_message.py test_system_msg.func 6 6 0 0%
tests/test_message.py test_message_merge 2 0 0 100%
tests/test_message.py test_message_merge.func 9 9 0 0%
tests/test_message.py test_ai_tool_call 2 0 0 100%
tests/test_message.py test_ai_tool_call.func 2 2 0 0%
tests/test_message.py test_role_wrap 2 0 0 100%
tests/test_message.py test_role_wrap.func 4 4 0 0%
tests/test_message.py test_mix_role_usage 2 0 0 100%
tests/test_message.py test_mix_role_usage.func 5 5 0 0%
tests/test_message.py test_multi_user 2 0 0 100%
tests/test_message.py test_multi_user.func 5 5 0 0%
tests/test_message.py test_role_change 2 0 0 100%
tests/test_message.py test_role_change.func 3 3 0 0%
tests/test_message.py test_role_change_loop1 2 0 0 100%
tests/test_message.py test_role_change_loop1.func 5 5 0 0%
tests/test_message.py test_role_change_loop2 2 0 0 100%
tests/test_message.py test_role_change_loop2.func 4 4 0 0%
tests/test_message.py test_role_change_loop3 6 0 0 100%
tests/test_message.py test_role_change_loop3.func 6 6 0 0%
tests/test_message.py test_nested_role_error 5 0 0 100%
tests/test_message.py test_nested_role_error.func 6 6 0 0%
tests/test_message.py (no function) 30 0 0 100%
tests/test_openai.py add 1 1 0 0%
tests/test_openai.py test_openai 1 0 0 100%
tests/test_openai.py test_tool_call 5 0 0 100%
tests/test_openai.py test_tool_call.special_number 1 0 0 100%
tests/test_openai.py test_tool_call.func 3 3 0 0%
tests/test_openai.py test_image 2 0 0 100%
tests/test_openai.py test_image.query 4 4 0 0%
tests/test_openai.py test_response_format 8 0 0 100%
tests/test_openai.py test_response_format.func 1 1 0 0%
tests/test_openai.py test_response_format.func2 1 1 0 0%
tests/test_openai.py test_auto_continue 2 0 0 100%
tests/test_openai.py test_auto_continue.func 2 2 0 0%
tests/test_openai.py (no function) 28 3 0 89%
tests/test_parallel.py test_call_future 16 0 0 100%
tests/test_parallel.py test_call_future.run 2 0 0 100%
tests/test_parallel.py sleep 2 2 0 0%
tests/test_parallel.py test_call_future_process 2 0 0 100%
tests/test_parallel.py test_format_future 8 0 0 100%
tests/test_parallel.py test_format_future.run 2 0 0 100%
tests/test_parallel.py test_format_future.func 5 5 0 0%
tests/test_parallel.py (no function) 9 0 0 100%
tests/test_prompt.py test_return 2 0 0 100%
tests/test_prompt.py test_return.func 1 1 0 0%
tests/test_prompt.py test_prompt 2 0 0 100%
tests/test_prompt.py test_prompt.func 1 1 0 0%
tests/test_prompt.py test_fstring 5 0 0 100%
tests/test_prompt.py test_fstring.f1 2 2 0 0%
tests/test_prompt.py test_fstring.f2 2 2 0 0%
tests/test_prompt.py test_prompts_change 5 0 0 100%
tests/test_prompt.py test_prompts_change.func 5 5 0 0%
tests/test_prompt.py test_return_prompt 5 0 0 100%
tests/test_prompt.py test_return_prompt.f1 0 0 0 100%
tests/test_prompt.py test_return_prompt.f2 1 1 0 0%
tests/test_prompt.py test_record 4 0 0 100%
tests/test_prompt.py test_record.f2 2 2 0 0%
tests/test_prompt.py test_record.func 5 5 0 0%
tests/test_prompt.py test_inner_func 2 0 0 100%
tests/test_prompt.py test_inner_func.func 3 3 0 0%
tests/test_prompt.py test_inner_func.func.func2 0 0 0 100%
tests/test_prompt.py test_tripple_quote 11 0 0 100%
tests/test_prompt.py test_tripple_quote.func1 2 2 0 0%
tests/test_prompt.py test_tripple_quote.func2 2 2 0 0%
tests/test_prompt.py test_tripple_quote.func3 2 2 0 0%
tests/test_prompt.py test_tripple_quote.func4 2 2 0 0%
tests/test_prompt.py test_tripple_quote_fstring 8 0 0 100%
tests/test_prompt.py test_tripple_quote_fstring.func1 3 3 0 0%
tests/test_prompt.py test_tripple_quote_fstring.func2 3 3 0 0%
tests/test_prompt.py test_tripple_quote_fstring.func3 2 2 0 0%
tests/test_prompt.py test_include_docstring 2 0 0 100%
tests/test_prompt.py test_include_docstring.func 2 2 0 0%
tests/test_prompt.py test_include_multiline_docstring 5 0 0 100%
tests/test_prompt.py test_include_multiline_docstring.func 2 2 0 0%
tests/test_prompt.py test_include_multiline_docstring.func2 1 1 0 0%
tests/test_prompt.py test_default_no_docstring 5 0 0 100%
tests/test_prompt.py test_default_no_docstring.func 2 2 0 0%
tests/test_prompt.py test_default_no_docstring.func2 2 2 0 0%
tests/test_prompt.py test_copy_ctx 7 0 0 100%
tests/test_prompt.py test_copy_ctx.addon 1 1 0 0%
tests/test_prompt.py test_copy_ctx.func2 3 3 0 0%
tests/test_prompt.py test_resume_ctx 6 0 0 100%
tests/test_prompt.py test_resume_ctx.resume_ctx 1 1 0 0%
tests/test_prompt.py test_class_resume_ctx 21 0 0 100%
tests/test_prompt.py test_class_resume_ctx.A.append 2 2 0 0%
tests/test_prompt.py test_class_resume_ctx.A.append_cls 2 2 0 0%
tests/test_prompt.py test_class_func 12 0 0 100%
tests/test_prompt.py test_class_func.ComplexPrompt.__init__ 1 0 0 100%
tests/test_prompt.py test_class_func.ComplexPrompt.sub1 3 3 0 0%
tests/test_prompt.py test_class_func.ComplexPrompt.sub2 3 3 0 0%
tests/test_prompt.py test_class_func.ComplexPrompt.func 3 3 0 0%
tests/test_prompt.py test_generation_message 6 0 0 100%
tests/test_prompt.py test_generation_message.func 4 4 0 0%
tests/test_prompt.py test_generation_message2 4 0 0 100%
tests/test_prompt.py test_generation_message2.fakegen 1 0 0 100%
tests/test_prompt.py test_generation_message2.func 5 5 0 0%
tests/test_prompt.py (no function) 36 0 0 100%
tests/test_prompt_helpers.py test_compositor 2 0 0 100%
tests/test_prompt_helpers.py test_compositor.func 7 7 0 0%
tests/test_prompt_helpers.py test_iter 2 0 0 100%
tests/test_prompt_helpers.py test_iter.func 3 3 0 0%
tests/test_prompt_helpers.py test_logged 2 0 0 100%
tests/test_prompt_helpers.py test_logged.func 4 4 0 0%
tests/test_prompt_helpers.py test_tagged 7 0 0 100%
tests/test_prompt_helpers.py test_tagged.func 4 4 0 0%
tests/test_prompt_helpers.py test_tagged.inline 4 4 0 0%
tests/test_prompt_helpers.py test_definition 9 0 0 100%
tests/test_prompt_helpers.py test_definition.func 6 6 0 0%
tests/test_prompt_helpers.py test_compositor_decorator 2 0 0 100%
tests/test_prompt_helpers.py test_compositor_decorator.func 6 6 0 0%
tests/test_prompt_helpers.py (no function) 17 0 0 100%
tests/test_stringfuture.py _check_str 2 0 0 100%
tests/test_stringfuture.py test_concat 10 0 0 100%
tests/test_stringfuture.py test_cmp 12 0 0 100%
tests/test_stringfuture.py test_contains 2 0 0 100%
tests/test_stringfuture.py test_getitem 3 0 0 100%
tests/test_stringfuture.py test_format 3 0 0 100%
tests/test_stringfuture.py test_as_key 4 0 0 100%
tests/test_stringfuture.py test_future 9 0 0 100%
tests/test_stringfuture.py test_future.run 2 0 0 100%
tests/test_stringfuture.py (no function) 12 0 0 100%
tests/test_tool.py removed_keyword 5 0 0 100%
tests/test_tool.py get_openai_schema 9 0 0 100%
tests/test_tool.py test_as_tool 13 0 0 100%
tests/test_tool.py test_as_tool.add 3 1 0 67%
tests/test_tool.py test_as_tool.add 0 0 0 100%
tests/test_tool.py test_as_tool.add 0 0 0 100%
tests/test_tool.py test_args_schema 10 0 0 100%
tests/test_tool.py test_args_schema.add 1 1 0 0%
tests/test_tool.py test_args_schema.add 1 1 0 0%
tests/test_tool.py test_tool_call_sequential 10 0 0 100%
tests/test_tool.py test_tool_call_sequential.add 3 0 0 100%
tests/test_tool.py test_tool_call_sequential.filter_fn 1 0 0 100%
tests/test_tool.py test_tool_call_sequential.func 2 2 0 0%
tests/test_tool.py test_tool_call_parallel 10 0 0 100%
tests/test_tool.py test_tool_call_parallel.add 2 0 0 100%
tests/test_tool.py test_tool_call_parallel.func 2 2 0 0%
tests/test_tool.py (no function) 15 0 0 100%
Total   4311 908 118 79%

No items found using the specified filter.