← Về thư mục
openai4s/agent/finalize.py
- CompletionRecord · class · L27-L31 — class CompletionRecord(TypedDict)
- ExecutionEvidence · class · L34-L38 — class ExecutionEvidence(TypedDict)
- note_execution_evidence · function · L88-L105 — def note_execution_evidence( metadata: MutableMapping[str, Any], *, cells: int = 0, tool_calls: int = 0 ) -> None
- execution_evidence · function · L108-L117 — def execution_evidence(metadata: Mapping[str, Any]) -> ExecutionEvidence
- _count · function · L120-L121 — def _count(value: Any) -> int
- reconcile_completion_claims · function · L124-L169 — def reconcile_completion_claims( arguments: Mapping[str, Any], evidence: Mapping[str, Any] ) -> str | None
- finalize_response_schema · function · L287-L290 — def finalize_response_schema() -> dict[str, Any]
- finalize_response_tool_spec · function · L293-L312 — def finalize_response_tool_spec() -> ToolSpec
- with_finalize_response · function · L315-L324 — def with_finalize_response(tools: Iterable[Any]) -> tuple[Any, ...]
- _tool_spec_name · function · L327-L332 — def _tool_spec_name(tool: Any) -> str
- validate_finalize_arguments · function · L335-L349 — def validate_finalize_arguments(arguments: Any) -> str | None
- _completion_record · function · L352-L360 — def _completion_record(arguments: Mapping[str, Any]) -> CompletionRecord
- execute_finalize_action · function · L363-L424 — def execute_finalize_action( action: FinalizeAction, *, refusal: str | None = None, stop_reason: str | None = None, evidence: Mapping[str, Any] | None = None, code_evidence: Callable[[Mapping[str, Any]], str | None] | None = None, ) -> ExecutionOutcome
- _call_error · function · L427-L434 — def _call_error(call: NativeToolCall) -> str | None