forge-guardrails 0.1.0

Foundation types for an LLM-agent workflow framework
Documentation
�

��j���(�SrSSKJr SSKrSSKJr \"\5R5RSr	\	S-r
\RRS\
"\	S-55 \RRS\
"\
S-55 \RRS\
"\
55 \RRS	5r\b;\"\S
5(a-\
"\
S	-5r\"\R(5r\\;a
\/\Q\l\S:Xa5\"S\R0SS55(aSS
KJr \"5 \"S5eSSKJrJrJrJrJ r J!r!J"r"J#r#J$r$J%r%J&r&J'r'J(r(J)r)J*r*J+r+J,r,J-r-J.r.J/r/J0r0J1r1J2r2J3r3J4r4J5r5J6r6J7r7J8r8J9r9J:r:J;r;J<r<J=r=J>r> \S:Xa\>"5 gg)z�Run upstream Forge eval scenarios against an OpenAI-compatible proxy.

This wrapper lives outside the upstream `forge/` submodule on purpose. It uses
the Python eval scenarios as the oracle while targeting a Rust Forge proxy at
`--base-url`.
�)�annotationsN)�Path��forge�scripts�src�tests�__path__�__main__c#�*# �UH	oS;v� M g7f)>�-h�--helpN�)�.0�args  �I/Users/whit3rabbit/Documents/GitHub/forge-rs/scripts/eval_openai_proxy.py�	<genexpr>rs���!R�\�c�)9�"9�\�s�)�_print_early_help)#�
ALL_SCENARIOS�ABLATION_PRESETS�
ProxyToolCall�	ProxyTurn�ProxyRunResult�OpenAIProxyClient�_chat_completions_url�_http_error_message�
_usage_tokens�_parse_openai_response�_arguments_json�_parse_args�_parse_openai_sse�run_proxy_scenario�_result_row�_proxy_failure_classification�_has_redacted_terminal_content�_is_redacted_terminal_text�_proxy_tool_specs�_proxy_terminal_tools�_openai_tool_call�_tool_result_message�
_call_tool�_stringify_tool_result�_is_proxy_failure_text�_terminal_args_from_text�_terminal_text�_validate_result�_required_step_diagnostics�FORGE_EXTENSION_FIELD�FORGE_TOOL_STATUS_FIELD�FORGE_TOOL_STATUS_OK�FORGE_TOOL_STATUS_ERROR�REDACTED_TERMINAL_TEXT�main)?�__doc__�
__future__r�sys�pathlibr�__file__�resolve�parents�ROOT�
FORGE_ROOT�path�insert�str�modules�get�_tests_package�hasattr�_forge_tests_path�listr
�_tests_paths�__name__�any�argv�eval_openai_proxy_libr�
SystemExitrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r�r�<module>rQsa���#�
���H�~����'�'��*��
�G�^�
�������3�t�i�'�(�)�������3�z�E�)�*�+�������3�z�?�#�������)����'�.�*�"E�"E��J��0�1����/�/�0�L���,�#4�"D�|�"D����z��c�!R�S�X�X�a�b�\�!R�R�R�7���
�Q�-��$�$�$�$�$�$�$�$�$�$�L�z���F�rP